:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-muted: #f0eee8;
  --text: #1e2528;
  --muted: #6b7378;
  --line: #d9d5cc;
  --accent: #116a70;
  --accent-strong: #0b4f54;
  --accent-soft: #dceced;
  --warn: #9b4d19;
  --shadow: 0 12px 32px rgba(29, 38, 40, 0.08);
}

.growth-report-workspace {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid rgba(74, 96, 84, 0.18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(246, 250, 246, 0.96), rgba(238, 245, 240, 0.88));
}

.supervised-practice-settings {
  border-color: rgba(120, 88, 48, 0.22);
  background: linear-gradient(145deg, rgba(255, 250, 241, 0.96), rgba(247, 241, 229, 0.9));
}

.supervised-participant-roles {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.supervised-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.supervised-role-grid label {
  padding: 10px;
  border: 1px solid rgba(120, 88, 48, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.growth-report-heading,
.growth-report-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.growth-report-heading h3,
.growth-report-title h3,
.growth-section h4 {
  margin: 4px 0 8px;
}

.growth-report-heading p,
.growth-period-summary,
.growth-section-note {
  margin: 0;
  color: var(--muted);
}

.growth-report-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex: 0 0 auto;
}

.growth-report-actions label {
  min-width: 130px;
}

.growth-report-view {
  margin-top: 16px;
}

.growth-report-card {
  padding-top: 4px;
}

.growth-period-summary {
  padding: 14px 0 18px;
  font-size: 15px;
  line-height: 1.8;
}

.growth-section {
  padding: 18px 0;
  border-top: 1px solid rgba(74, 96, 84, 0.14);
}

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

.growth-insight-card {
  padding: 16px;
  border: 1px solid rgba(74, 96, 84, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.growth-insight-card p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.growth-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.growth-evidence span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(73, 105, 85, 0.09);
  color: var(--muted);
  font-size: 12px;
}

.growth-closing {
  margin: 8px 0 0;
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

@media (max-width: 720px) {
  .growth-report-heading,
  .growth-report-title,
  .growth-report-actions {
    display: grid;
  }

  .growth-report-actions,
  .growth-item-grid {
    grid-template-columns: 1fr;
  }

  .growth-report-actions button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .client-self-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .client-self-dimensions,
  .client-pattern-grid,
  .client-scale-grid,
  .life-wheel-radar {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.access-locked {
  overflow: hidden;
}

.access-locked .app-shell {
  opacity: 0;
  pointer-events: none;
}

.access-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: 42px 20px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.72), rgba(232, 244, 243, 0.58)),
    radial-gradient(circle at 16% 12%, rgba(15, 94, 100, 0.18), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(215, 179, 103, 0.22), transparent 24%),
    linear-gradient(135deg, #fbf7ee 0%, #f3efe5 48%, #e3f0ef 100%);
}

.access-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 52% 42%, #000 0%, transparent 70%);
}

.brand-art {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.brand-glass,
.brand-orb {
  position: absolute;
  display: block;
}

.brand-glass {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18)),
    linear-gradient(315deg, rgba(16, 101, 107, 0.12), rgba(215, 179, 103, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 34px 90px rgba(31, 50, 52, 0.12);
  backdrop-filter: blur(20px);
}

.glass-one {
  width: min(42vw, 520px);
  height: min(58vw, 640px);
  right: -6vw;
  top: 8vh;
  border-radius: 42% 58% 46% 54% / 36% 44% 56% 64%;
  transform: rotate(-12deg);
}

.glass-two {
  width: min(34vw, 420px);
  height: min(30vw, 360px);
  left: 4vw;
  bottom: 6vh;
  border-radius: 36px;
  transform: rotate(10deg);
}

.glass-three {
  width: min(22vw, 280px);
  height: min(22vw, 280px);
  right: 28vw;
  bottom: 10vh;
  border-radius: 999px;
  transform: rotate(18deg);
}

.brand-orb {
  border-radius: 999px;
  filter: blur(4px);
}

.orb-one {
  width: 260px;
  height: 260px;
  left: 14vw;
  top: 10vh;
  background: rgba(17, 106, 112, 0.13);
}

.orb-two {
  width: 220px;
  height: 220px;
  right: 18vw;
  top: 56vh;
  background: rgba(220, 177, 96, 0.16);
}

.access-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  width: min(980px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 252, 244, 0.58));
  box-shadow:
    0 28px 80px rgba(29, 38, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: clamp(26px, 4vw, 46px);
  backdrop-filter: blur(16px);
}

.access-gate.client-mode {
  place-items: stretch;
  padding: 0;
}

.access-gate.client-mode .access-card {
  display: none;
}

.access-card h2,
.access-card p {
  margin-bottom: 0;
}

.access-card h2 {
  max-width: 760px;
  color: var(--accent-strong);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.access-card p {
  max-width: 700px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.access-card label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.access-hero {
  display: grid;
  gap: 20px;
}

.access-brand-block {
  display: grid;
  gap: 3px;
}

.access-brand-name {
  color: var(--accent-strong);
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    Georgia, serif;
  font-size: clamp(64px, 10vw, 118px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.94;
}

.access-brand-en {
  color: rgba(11, 79, 84, 0.66);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.access-entry-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(17, 106, 112, 0.16);
  border-radius: 22px;
  background: #f4fbfa;
  padding: 22px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.access-entry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 106, 112, 0.32);
  box-shadow: 0 16px 34px rgba(17, 106, 112, 0.12);
}

.access-entry-card.client {
  background: #fff8e9;
}

.access-entry-card span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-entry-card strong {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.access-entry-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.access-start {
  width: fit-content;
  min-width: 190px;
}

.access-login-panel {
  display: grid;
  gap: 12px;
  max-width: 420px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.client-guide-screen {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  padding: 26px clamp(18px, 5vw, 70px) 54px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 249, 238, 0.52)),
    radial-gradient(circle at 80% 8%, rgba(215, 179, 103, 0.22), transparent 30%);
  backdrop-filter: blur(10px);
}

.client-guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(34px, 7vh, 82px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-guide-nav .text-button {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.client-guide-hero {
  min-height: min(760px, 78vh);
  display: grid;
  align-content: center;
  gap: 20px;
}

.client-guide-hero h2 {
  max-width: 880px;
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(42px, 7vw, 88px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.client-guide-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.client-guide-cta {
  width: fit-content;
  min-height: 44px;
}

.client-guide-sections {
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  max-width: 1120px;
  margin: 0 auto;
}

.client-guide-sections > section {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    0 22px 64px rgba(29, 38, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: clamp(22px, 4vw, 42px);
  backdrop-filter: blur(18px);
}

.client-guide-sections h3 {
  max-width: 780px;
  margin: 8px 0 12px;
  color: var(--accent-strong);
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.client-guide-sections p {
  max-width: 860px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.client-guide-card-grid,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.client-guide-card-grid article,
.credential-grid article {
  border: 1px solid rgba(17, 106, 112, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.client-guide-card-grid strong,
.credential-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 16px;
}

.client-guide-card-grid p,
.credential-grid p,
.client-guide-note {
  font-size: 14px;
}

.comparison-table {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.comparison-table > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(17, 106, 112, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.comparison-table strong {
  color: var(--accent-strong);
}

.comparison-table span {
  color: var(--muted);
  line-height: 1.7;
}

.client-guide-note {
  max-width: none;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

.client-guide-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.access-help {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.access-help a {
  color: var(--accent-strong);
  font-weight: 750;
}

.access-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.version-badge {
  min-width: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 7px 10px;
  line-height: 1.25;
  text-align: left;
}

.version-badge strong,
.version-badge span {
  display: block;
}

.version-badge strong {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.version-badge span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.version-badge[data-plan="basic"] {
  border-color: rgba(14, 100, 98, 0.24);
  background: #f3fbfa;
}

.version-badge[data-plan="pro"] {
  border-color: rgba(189, 153, 72, 0.42);
  background: #fffaf0;
}

.version-badge[data-plan="brand"] {
  border-color: rgba(189, 153, 72, 0.56);
  background: #132432;
}

.version-badge[data-plan="brand"] strong {
  color: #e8c879;
}

.version-badge[data-plan="brand"] span {
  color: rgba(255, 255, 255, 0.72);
}

.version-badge[data-plan="local"] {
  border-color: rgba(14, 100, 98, 0.18);
  background: #f7f8f4;
}

.coach-profile-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.coach-profile-switch select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
}

.quota-summary {
  text-align: right;
}

.quota-summary span,
.quota-summary small {
  display: block;
}

.quota-summary span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.quota-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.billing-overlay {
  align-items: center;
}

.redeem-overlay {
  align-items: center;
}

.billing-modal {
  width: min(820px, calc(100vw - 28px));
}

.redeem-modal {
  width: min(520px, calc(100vw - 28px));
}

.redeem-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.redeem-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.billing-package,
.billing-order-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.billing-package span,
.billing-package strong,
.billing-package small {
  display: block;
}

.billing-package strong {
  margin-top: 8px;
  font-size: 26px;
}

.billing-package small {
  min-height: 42px;
  margin: 4px 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.billing-order-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}

.billing-order-box h4 {
  margin: 4px 0 8px;
}

.billing-order-box p {
  margin: 4px 0;
  color: var(--muted);
}

.billing-order-box p strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.billing-qr,
.billing-qr-placeholder {
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-qr {
  object-fit: contain;
}

.billing-qr-placeholder {
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .billing-package-grid,
  .billing-order-box,
  .redeem-form {
    grid-template-columns: 1fr;
  }

  .billing-qr,
  .billing-qr-placeholder {
    width: min(220px, 100%);
  }

  .admin-order {
    align-items: flex-start;
    flex-direction: column;
  }
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px;
  cursor: pointer;
  font-size: 12px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.consent-check input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer a {
  color: var(--accent-strong);
}

.site-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.admin-login,
.admin-create {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-session-check {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.admin-session-check strong {
  color: var(--text);
}

.admin-session-check .link-button {
  justify-self: start;
}

.admin-create {
  grid-template-columns: 1.1fr 1fr 140px 120px auto;
  margin: 22px 0;
}

.admin-hint {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.admin-billing {
  margin: 18px 0;
}

.admin-redemption-codes {
  margin: 22px 0;
}

.admin-redemption-table {
  min-width: 760px;
}

.admin-redemption-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.admin-redemption-status.is-available {
  background: #e6f5ef;
  color: #146c5b;
}

.admin-redemption-status.is-redeemed {
  background: #eef1f2;
  color: #59676c;
}

.admin-redemption-status.is-disabled {
  background: #fbeceb;
  color: #a44842;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.admin-section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.admin-section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-billing-orders {
  display: grid;
  gap: 8px;
}

.admin-order,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.admin-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-order strong,
.admin-order span,
.admin-order small {
  display: block;
}

.admin-order span,
.admin-order small,
.admin-empty {
  color: var(--muted);
}

.admin-order.is-paid {
  background: #f6f8f2;
}

.admin-order em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.admin-support {
  margin: 26px 0;
  border-block: 1px solid var(--line);
  padding: 22px 0;
}

.admin-support-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, .7fr)) minmax(220px, 1.3fr);
  gap: 10px;
  margin: 14px 0;
}

.admin-support-filters label span,
.admin-support-controls label span,
.admin-support-reply label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-support-filters select,
.admin-support-filters input,
.admin-support-controls select,
.admin-support-controls input,
.admin-support-reply textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
}

.admin-support-layout {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(420px, 1.25fr);
  gap: 14px;
  align-items: start;
}

.admin-support-list {
  display: grid;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
}

.admin-support-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  color: var(--text);
  text-align: left;
}

.admin-support-item:hover,
.admin-support-item.active {
  border-color: var(--accent);
  background: #f2f8f6;
}

.admin-support-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.admin-support-item strong,
.admin-support-item span,
.admin-support-item small {
  display: block;
}

.admin-support-item span,
.admin-support-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.admin-support-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  background: #edf5f3;
  padding: 4px 7px;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 850;
}

.admin-support-badge.p0,
.admin-support-badge.p1 {
  background: #fff0eb;
  color: #a3472c;
}

.admin-support-detail {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.admin-support-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-support-detail-head h3 {
  margin: 0;
  color: var(--accent-strong);
}

.admin-support-detail-head p,
.admin-support-meta,
.admin-support-description small {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-support-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  gap: 9px;
  align-items: end;
  margin: 14px 0;
}

.admin-support-description {
  border-block: 1px solid var(--line);
  padding: 13px 0;
}

.admin-support-description p {
  margin: 7px 0 0;
  white-space: pre-wrap;
}

.admin-support-attachments,
.admin-support-messages {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.admin-support-attachments {
  display: flex;
  flex-wrap: wrap;
}

.admin-support-message {
  border-radius: 7px;
  background: #f4f3ee;
  padding: 10px 11px;
  font-size: 13px;
}

.admin-support-message.admin {
  background: #edf6f4;
}

.admin-support-message.internal {
  border: 1px dashed #d4b769;
  background: #fff8e6;
}

.admin-support-message strong,
.admin-support-message span {
  display: block;
}

.admin-support-message span {
  margin-top: 4px;
  white-space: pre-wrap;
}

.admin-support-reply {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-support-reply textarea {
  min-height: 88px;
  resize: vertical;
}

.admin-support-reply-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.admin-support-reply-actions label {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .admin-support-filters,
  .admin-support-layout,
  .admin-support-controls {
    grid-template-columns: 1fr;
  }
}

.admin-tools {
  margin: 0 0 12px;
  max-width: 420px;
}

.admin-funnel {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px;
  margin: -4px 0 18px;
  overflow-x: auto;
}

.admin-funnel div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.admin-funnel strong,
.admin-funnel span {
  display: block;
}

.admin-funnel strong {
  font-size: 18px;
}

.admin-funnel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-login label span,
.admin-create label span,
.admin-tools label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.admin-action-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, auto));
  gap: 6px;
  align-items: end;
}

.admin-action-stack label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.admin-action-stack input {
  width: 74px;
  min-height: 34px;
  padding: 6px 8px;
}

.admin-reset-requested {
  color: #9a4e2f;
  font-weight: 750;
}

#admin-password-reset-result {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

#admin-password-reset-result.hidden { display: none; }

#admin-password-reset-result code {
  overflow-wrap: anywhere;
  user-select: all;
}

.quota-input {
  width: 74px;
}

.admin-plan-select {
  min-width: 118px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 26px;
}

.legal-note {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

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

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 2px;
  font-size: 30px;
  font-weight: 760;
}

.product-subtitle {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

h4 {
  margin: 14px 0 4px;
  font-size: 14px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 650;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 12px 16px 10px;
  cursor: pointer;
  font-weight: 650;
}

.tab.active {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.tier-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.tier-chip.basic {
  border: 1px solid rgba(14, 100, 98, 0.2);
  background: #edf7f4;
  color: var(--accent-strong);
}

.tier-chip.pro {
  border: 1px solid rgba(176, 132, 57, 0.28);
  background: #fff6df;
  color: #8a651f;
}

.tier-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tier-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 3px;
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 2px 0;
  color: inherit;
  text-align: left;
}

.tier-entry strong {
  display: inline;
  margin: 0;
  font-size: 15px;
}

.tier-entry p {
  grid-column: 2;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.beta-mode-notice {
  border: 1px solid rgba(14, 100, 98, 0.24);
  border-radius: 8px;
  margin: -4px 0 18px;
  background: #eef8f6;
  padding: 14px;
}

.beta-mode-notice strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 15px;
}

.beta-mode-notice p {
  margin: 0;
  font-size: 13px;
}

html[data-feature-mode="beta"] .tier-overview {
  display: grid;
}

html[data-feature-mode="beta"] .beta-mode-notice {
  margin: 2px 0 10px;
  padding: 10px 12px;
  background: transparent;
  border-color: var(--line);
}

html[data-feature-mode="beta"] .beta-mode-notice div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

html[data-feature-mode="beta"] .beta-mode-notice strong {
  display: inline;
  margin: 0;
  font-size: 13px;
}

html[data-feature-mode="beta"] .beta-mode-notice p {
  flex-basis: 100%;
  color: var(--muted);
}

.panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel.active {
  display: block;
}

.contract-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
  gap: 22px;
  align-items: start;
}

.contract-form {
  position: sticky;
  top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5ef;
  padding: 18px;
}

.contract-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.contract-form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contract-form textarea {
  min-height: 84px;
}

.contract-wide {
  grid-column: 1 / -1;
}

.contract-options {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.contract-signature-upload {
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 13px;
}

.contract-signature-upload > div:first-child > span,
.contract-signature-upload small {
  display: block;
}

.contract-signature-upload small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.contract-signature-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.contract-signature-picker {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  cursor: pointer;
}

.contract-signature-picker > span {
  margin: 0 !important;
  color: inherit !important;
  font-size: 13px !important;
}

.contract-signature-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contract-signature-file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
}

.contract-signature-date {
  max-width: 220px;
  margin-top: 10px;
}

.contract-signature-file-preview img {
  width: 112px;
  height: 48px;
  object-fit: contain;
}

.contract-signature-file-preview span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-download-link {
  display: inline-block;
  margin-left: 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

.contract-preview {
  border: 1px solid #d8d0c1;
  border-radius: 4px;
  background: #fffefa;
  box-shadow: 0 12px 32px rgba(29, 42, 44, 0.08);
  padding: 48px 54px;
  color: #20282a;
}

.contract-document-header {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  width: 100%;
  border-bottom: 1px solid #c3a36b;
  padding-bottom: 18px;
}

.contract-brand {
  position: relative;
  width: 222px;
  padding-bottom: 0;
}

.contract-brand img {
  width: 210px;
  height: 84px;
  object-fit: contain;
  object-position: left center;
}

.contract-lead small,
.contract-clause p small {
  display: block;
  margin-top: 2px;
  color: #7a8382;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88em;
  line-height: 1.55;
}

.contract-kicker {
  margin: 0 0 5px;
  color: #aa8246;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.contract-title-block h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 29px;
}

.contract-lead {
  margin: 7px 0 0;
  font-size: 11px;
}

.contract-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #ded7ca;
  border-bottom: 1px solid #ded7ca;
  margin: 0 0 24px;
  padding: 14px 0;
  gap: 10px 24px;
}

.contract-parties div {
  min-width: 0;
}

.contract-parties dt {
  color: #8e754e;
  font-size: 10px;
  font-weight: 800;
}

.contract-parties dd {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.contract-clause {
  margin-top: 19px;
}

.contract-clause h3 {
  color: #8e754e;
  font-size: 14px;
}

.contract-clause p {
  margin: 6px 0;
  color: #2f3a3b;
  font-size: 12px;
  line-height: 1.8;
}

.contract-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  margin-top: 42px;
}

.contract-signatures span,
.contract-signatures small {
  display: block;
}

.contract-signatures span {
  font-size: 12px;
  font-weight: 700;
}

.contract-signatures i {
  display: block;
  height: 54px;
  border-bottom: 1px solid #766a58;
}

.contract-signatures i img {
  display: block;
  width: 100%;
  height: 50px;
  object-fit: contain;
  object-position: left bottom;
}

.contract-signatures small {
  margin-top: 7px;
  color: #777;
}

.contract-note {
  border-top: 1px solid #ded7ca;
  margin-top: 34px;
  padding-top: 12px;
  font-size: 10px;
}

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

.section-heading p {
  max-width: 580px;
  margin-bottom: 0;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fffefb;
  color: var(--text);
  line-height: 1.6;
}

textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

#transcript {
  min-height: 180px;
  max-height: 38vh;
}

input:not([type="checkbox"]):not([type="radio"]),
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  color: var(--text);
  padding: 10px 12px;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.consent-check span {
  flex: 1 1 auto;
  min-width: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

button.primary,
.secondary,
.danger,
.file-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 750;
}

button.primary,
.file-button {
  background: var(--accent);
  color: white;
}

.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-strong);
}

.danger {
  border: 1px solid #bf6b60;
  background: #f8e6e3;
  color: #7f3027;
}

button.primary:hover,
.file-button:hover {
  background: var(--accent-strong);
}

.secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.danger:hover {
  border-color: #9f4a40;
  background: #f2d2cd;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.file-button {
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.speaker-box,
.empty-state,
.message {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

.message {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.message.error {
  border-color: #bf6b60;
  background: #f8e6e3;
  color: #7f3027;
}

.report-progress {
  margin-top: 12px;
}

.speaker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.speaker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  padding: 10px 12px;
  cursor: pointer;
  min-height: 44px;
}

.speaker-option:hover,
.speaker-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.speaker-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.speaker-option span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 750;
  line-height: 1.35;
}

.preview-list,
.turn-list {
  display: grid;
  gap: 10px;
}

.preview-list {
  margin-top: 18px;
}

.preview-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.turn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  padding: 12px;
}

.turn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.turn p {
  margin-bottom: 0;
  color: var(--text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  padding: 12px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.privacy-map-card,
.privacy-preview-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
}

.privacy-map-card {
  padding: 16px;
}

.privacy-map-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.privacy-map-heading h3 {
  margin: 0 0 4px;
}

.privacy-map-heading p {
  margin: 0;
  color: var(--muted);
}

.privacy-map-list {
  display: grid;
  gap: 10px;
}

.privacy-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.privacy-map-row.speaker-priority {
  padding: 10px;
  border: 1px solid rgba(10, 95, 99, 0.22);
  border-radius: 8px;
  background: rgba(230, 247, 245, 0.55);
}

.privacy-map-value {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  min-width: 0;
}

.privacy-map-value.anonymized {
  background: var(--accent-soft);
  border-color: rgba(10, 95, 99, 0.24);
}

.privacy-map-value span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.privacy-map-value strong {
  display: block;
  overflow-wrap: anywhere;
}

.privacy-map-arrow {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.privacy-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: var(--surface);
}

.privacy-preview-details {
  padding: 0;
}

.privacy-preview-details summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--accent);
  font-weight: 800;
}

.privacy-preview-details .privacy-grid {
  padding: 0 16px 16px;
}

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

.moment-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  padding: 12px;
}

.moment-detail summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.moment-detail small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.model-settings {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

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

.settings-grid label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analysis-range-settings .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 220px));
}

.analysis-range-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.supervision-editor,
.linked-supervision-list {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  padding: 16px;
}

.learning-import-context,
.learning-library-guide,
.learning-review-card,
.supervision-entry-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.learning-import-context {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
}

.learning-import-context strong,
.learning-import-context p {
  display: block;
  margin: 7px 0 0;
}

.learning-library-heading,
.learning-review-card-heading,
.linked-supervision-library-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.learning-library-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--line);
}

.learning-library-guide > div {
  background: var(--surface-muted);
  padding: 16px;
}

.learning-library-guide p,
.learning-review-card p,
.linked-supervision-library-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.learning-review-list {
  display: grid;
  gap: 14px;
}

.learning-review-card {
  padding: 18px;
}

.learning-review-card-heading h3 {
  margin: 8px 0 0;
}

.learning-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.learning-review-preview {
  margin-bottom: 14px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.learning-review-preview strong {
  margin-right: 8px;
}

.linked-supervision-library-heading {
  margin-bottom: 14px;
}

.linked-supervision-list > h4 {
  margin: 6px 0 12px;
}

.linked-supervision-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.linked-supervision-card + .linked-supervision-card {
  margin-top: 12px;
}

.linked-supervision-heading,
.supervision-insight-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.linked-supervision-heading strong,
.linked-supervision-heading small {
  display: block;
}

.linked-supervision-heading small {
  margin-top: 4px;
  color: var(--muted);
}

.supervision-insight-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.supervision-insight {
  border-left: 3px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-muted);
  padding: 12px;
}

.supervision-insight.accepted {
  border-left-color: var(--accent);
  background: #edf7f4;
}

.supervision-insight.ignored {
  opacity: 0.68;
}

.supervision-insight textarea {
  width: 100%;
  margin-top: 8px;
  resize: vertical;
}

.supervision-insight details {
  margin-top: 8px;
}

.supervision-insight details p {
  color: var(--muted);
  font-size: 13px;
}

.supervision-decision-actions {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 750;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.hidden {
  display: none !important;
}

.report-view {
  display: grid;
  gap: 16px;
}

.report-hours-card {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(420px, auto);
  gap: 20px;
  align-items: end;
  border: 1px solid #bdd9d9;
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  padding: 18px 20px;
  background: #f4fafa;
}

.report-hours-card.is-confirmed {
  border-color: var(--line);
  border-left-color: #86aaa7;
  background: #fffefb;
}

.report-hours-intro h3,
.report-hours-intro p {
  margin: 4px 0 0;
}

.report-hours-intro p {
  color: var(--muted);
}

.report-hours-controls {
  display: grid;
  grid-template-columns: 120px 150px auto;
  gap: 10px;
  align-items: end;
}

.report-hours-controls label {
  display: grid;
  gap: 5px;
}

.report-hours-controls label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.report-hours-controls select,
.report-hours-controls input,
.report-hours-controls button {
  min-height: 42px;
}

.report-hours-card > .inline-status {
  grid-column: 1 / -1;
}

.score-band {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 16px;
}

.score-number {
  font-size: 48px;
  font-weight: 820;
  color: var(--accent-strong);
}

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

.score-card,
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  padding: 14px;
}

.score-card strong {
  display: block;
  margin-bottom: 8px;
}

.score-card .small-score {
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 800;
}

.report-generation-note {
  border-color: #bdd9d9;
  background: #f4fafa;
  color: var(--text);
}

.question-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.question-list li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.practice-item {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}

.practice-item:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.practice-single {
  border-top: 0;
  margin-top: 0;
}

.practice-focus-panel {
  padding: 18px 20px;
}

.practice-focus-wide {
  border-left: 4px solid var(--accent);
  background: #fffefb;
}

.practice-rationale {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.practice-instruction {
  margin: 10px 0 12px;
  color: var(--text);
}

.practice-focus-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.practice-focus-steps > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
  min-height: 104px;
}

.practice-focus-steps p {
  margin-bottom: 0;
  color: var(--text);
}

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 10px 0 12px;
}

.practice-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.practice-grid p {
  margin-bottom: 0;
  color: var(--text);
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 10px 0 12px;
}

.compare-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.compare-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.archive-editor {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 16px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}

.archive-layout.client-workspace-open {
  grid-template-columns: minmax(0, 1fr);
}

.archive-layout.client-workspace-open > div:first-child {
  display: none;
}

.archive-layout.client-workspace-open .archive-detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefb;
  padding: 20px;
}

.archive-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(120px, 0.65fr) minmax(110px, 0.6fr) minmax(110px, 0.6fr) minmax(170px, 0.9fr);
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.hours-overview {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.hours-overview h3,
.hours-overview p {
  margin: 0;
}

.hours-overview p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hours-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.hours-summary div {
  border-left: 2px solid var(--accent);
  padding: 6px 10px;
}

.hours-summary strong,
.hours-summary span {
  display: block;
}

.hours-summary strong {
  font-size: 22px;
}

.hours-summary span {
  color: var(--muted);
  font-size: 12px;
}

.hours-workspace {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hours-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hours-workspace-head strong,
.hours-workspace-head span {
  display: block;
}

.hours-workspace-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.hours-workspace-head button {
  flex: 0 0 auto;
}

.hours-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hours-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hours-wide {
  grid-column: span 2;
}

.hours-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  max-height: min(620px, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-right: 6px;
}

.hour-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.hour-record:first-child {
  border-top: 0;
}

.hour-record-edit {
  position: relative;
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 9px 12px;
  text-align: left;
}

.hour-record-edit:hover,
.hour-record-edit:focus-visible {
  background: var(--surface-muted);
}

.hour-record-edit em {
  position: absolute;
  top: 9px;
  right: 12px;
  color: var(--accent-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  opacity: 0;
}

.hour-record-edit:hover em,
.hour-record-edit:focus-visible em {
  opacity: 1;
}

.hour-record-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.hour-record strong,
.hour-record span,
.hour-record small {
  display: block;
}

.hour-record span,
.hour-record small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.hour-record .hour-contact-status {
  display: inline-block;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}

.hour-record .hour-contact-status.is-complete {
  border-color: #a9c9c5;
  background: #edf7f5;
  color: var(--accent-strong);
}

.hour-record .hour-contact-status.is-missing {
  border-color: #d7b875;
  background: #fff9eb;
  color: #80601f;
}

.report-hour-contact {
  min-width: min(300px, 100%);
}

.archive-data-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.archive-data-actions button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.advanced-action,
.basic-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.advanced-action span,
.basic-action span {
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.advanced-action span {
  background: #fff6df;
  color: #8a651f;
}

.basic-action span {
  background: #edf7f4;
  color: var(--accent-strong);
}

.advanced-action.is-testing {
  border-color: rgba(176, 132, 57, 0.32);
  background: #fffaf0;
}

html[data-feature-mode="beta"] .new-client-form,
html[data-feature-mode="beta"] #detect-speakers,
html[data-feature-mode="beta"] #load-sample,
html[data-feature-mode="beta"] .advanced-only {
  display: none;
}

html[data-public-testing="true"] .tier-overview .tier-entry:nth-child(2),
html[data-public-testing="true"] .advanced-action,
html[data-public-testing="true"] .pro-only-action,
html[data-public-testing="true"] .hours-overview,
html[data-public-testing="true"] .report-hours-card,
html[data-public-testing="true"] .customer-summary-section {
  display: none !important;
}

html[data-public-testing="true"] .archive-data-actions .archive-danger-action,
html[data-public-testing="true"] .archive-detail-column {
  display: none !important;
}

html[data-public-testing="true"] .archive-layout {
  grid-template-columns: minmax(0, 1fr);
}

html[data-account-plan="basic"] .advanced-action,
html[data-account-plan="basic"] .pro-only-action,
html[data-account-plan="basic"] .hours-overview,
html[data-account-plan="basic"] #panel-contract,
html[data-account-plan="basic"] .customer-summary-section,
html[data-account-plan="basic"] .client-service-card,
html[data-account-plan="basic"] .client-contract-section,
html[data-account-plan="basic"] .client-context-section {
  display: none !important;
}

.advanced-preview-card {
  text-align: left;
}

.advanced-preview-card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.advanced-preview-card p {
  margin: 0;
}

.new-client-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) auto auto auto;
  align-items: end;
  gap: 10px;
  margin: -4px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}

.new-client-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.new-client-form label small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.new-client-form .new-client-check {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
}

.new-client-form .new-client-check span {
  margin: 0;
  color: var(--text);
}

.new-client-form .new-client-wide {
  grid-column: 1 / -1;
}

.new-client-form textarea {
  min-height: 78px;
  resize: vertical;
}

.new-client-form input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.archive-toolbar label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.archive-list-head h3 {
  margin: 0;
}

.archive-list-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.archive-list {
  display: grid;
  gap: 8px;
  max-height: min(680px, calc(100vh - 250px));
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.archive-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.archive-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.archive-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.archive-item strong,
.archive-item span,
.archive-item small {
  display: block;
}

.archive-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.archive-title-row strong {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.mode-badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.review-badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #d6c7a2;
  border-radius: 999px;
  background: #fff7df;
  color: #73551b;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.topic-badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #bfd9d2;
  border-radius: 999px;
  background: #eef7f2;
  color: #24614f;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.archive-item-main span,
.archive-item-main small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.archive-score {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 6px 4px;
  text-align: center;
}

.archive-score strong {
  font-size: 20px;
  line-height: 1;
}

.archive-score span {
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.client-session-count {
  min-width: 54px;
  text-align: center;
  color: var(--accent-strong);
}

.client-session-count strong,
.client-session-count span {
  display: block;
}

.client-session-count strong {
  font-size: 24px;
}

.client-session-count span {
  color: var(--muted);
  font-size: 11px;
}

.client-profile-actions {
  position: sticky;
  top: 8px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 254 251 / 94%);
  padding: 8px;
  box-shadow: 0 8px 24px rgb(18 31 36 / 7%);
}

.client-session-section h4 {
  margin: 4px 0 10px;
}

.client-collapsible-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  padding: 0;
}

.client-collapsible-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.client-collapsible-section summary::-webkit-details-marker {
  display: none;
}

.client-collapsible-section summary::after {
  content: "展开";
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
}

.client-collapsible-section[open] summary::after {
  content: "收起";
}

.client-collapsible-section summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.client-collapsible-section .client-session-list {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.client-session-list {
  display: grid;
  gap: 8px;
}

.client-session-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px;
  background: #fffefb;
  color: var(--text);
}

.client-session-row {
  flex-wrap: wrap;
}

.client-session-row:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.client-session-open {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  padding: 5px 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.client-session-open span,
.client-session-open small {
  display: block;
}

.client-session-open small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.client-session-open .client-session-hour-badge {
  display: inline-block;
  width: fit-content;
  margin-top: 6px;
  border: 1px solid rgba(15, 118, 120, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
  background: #e8f7f5;
  color: var(--accent-strong);
  font-weight: 750;
}

.client-session-open b {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 20px;
}

.client-session-open b small {
  display: inline;
  margin-left: 2px;
}

.client-session-hour {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
}

.client-session-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.client-session-actions button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

.client-session-actions .client-session-delete {
  border-color: #cf8f86;
  background: #fff4f2;
  color: #87362e;
}

.client-session-versions {
  flex: 1 0 100%;
  border-top: 1px dashed var(--line);
  padding: 8px 6px 2px;
}

.client-session-versions summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.client-session-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
  background: #fff;
}

.client-session-version-row span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.client-session-version-row button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.client-manual-hours-label {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.archive-more {
  width: 100%;
  margin-top: 10px;
}

.archive-form {
  display: grid;
  gap: 12px;
}

.archive-detail-column {
  position: sticky;
  top: 16px;
}

.archive-detail {
  min-height: 230px;
}

.archive-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.archive-detail-kicker {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.archive-detail-header h3 {
  margin: 5px 0 4px;
  font-size: 22px;
}

.client-profile-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.client-profile-title h3 {
  overflow-wrap: anywhere;
}

.client-rename-toggle {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.client-rename-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
  margin: 8px 0;
}

.client-rename-form input {
  min-width: 180px;
  flex: 1 1 240px;
}

.client-rename-form button {
  min-height: 36px;
  padding: 7px 12px;
}

.archive-detail-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.client-package-summary {
  width: fit-content;
  margin-top: 8px;
  border: 1px solid #c7a45c;
  border-radius: 999px;
  background: #fff9eb;
  color: var(--accent-strong);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 850;
}

.archive-detail-score {
  flex: 0 0 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 10px 6px;
  text-align: center;
}

.archive-detail-score strong,
.archive-detail-score span {
  display: block;
}

.client-detail-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

.client-manual-session {
  border-style: dashed;
  background: var(--surface-muted);
}

.archive-detail-score strong {
  font-size: 30px;
  line-height: 1;
}

.archive-detail-score span {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 850;
}

.client-package-score {
  flex-basis: 96px;
  background: #fff9eb;
}

.client-package-score strong {
  font-size: 24px;
}

.archive-detail-badges,
.archive-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.archive-detail-nav {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 254 251 / 94%);
  padding: 8px;
  box-shadow: 0 8px 24px rgb(18 31 36 / 7%);
}

.archive-detail-actions {
  width: 100%;
}

.archive-detail-actions .archive-danger-action {
  margin-left: auto;
}

.archive-data-actions .archive-danger-action {
  margin-left: 28px;
}

.archive-flow-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -4px 0 18px;
  border: 1px solid #a9c9c5;
  border-radius: 8px;
  background: #edf7f5;
  padding: 10px 12px;
  color: var(--accent-strong);
  font-size: 13px;
}

.archive-flow-hint strong {
  font-weight: 850;
}

.archive-flow-hint span {
  color: var(--text);
}

.archive-danger-action {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.archive-danger-action:hover {
  border-color: #bf6b60;
  background: #f8e6e3;
  color: #7f3027;
}

.archive-detail-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.archive-integrity-warning {
  border: 1px solid #d46f64;
  border-radius: 8px;
  background: #fff5f3;
  padding: 14px;
}

.archive-integrity-warning h4,
.archive-integrity-warning p {
  color: #83342d;
}

.long-term-badge,
.service-status-badge {
  border: 1px solid #c7a45c;
  border-radius: 999px;
  background: #fff9eb;
  color: #7a5a1f;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.client-package-brief {
  color: var(--accent-strong) !important;
}

.client-service-card {
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.client-secondary-section {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.client-secondary-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 14px 16px;
  color: var(--accent-strong);
  cursor: pointer;
  list-style: none;
}

.client-secondary-section > summary::-webkit-details-marker {
  display: none;
}

.client-secondary-section > summary:hover {
  background: #f8f6ef;
}

.client-secondary-summary-copy,
.client-secondary-section > summary small {
  display: block;
}

.client-secondary-summary-copy {
  min-width: 0;
}

.client-secondary-summary-copy strong {
  display: block;
  color: var(--accent-strong);
  font-size: 18px;
  line-height: 1.25;
}

.client-secondary-section > summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.client-section-toggle {
  flex: 0 0 auto;
  border: 1px solid #c7a45c;
  border-radius: 999px;
  background: #fff9eb;
  color: #7a5a1f;
  padding: 6px 28px 6px 12px;
  font-size: 12px;
  font-weight: 850;
  position: relative;
}

.client-section-toggle::before {
  content: "展开";
}

.client-section-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.client-secondary-section[open] {
  background: #fffefb;
  border-color: #c7a45c;
  box-shadow: 0 8px 18px rgba(22, 80, 84, 0.08);
}

.client-secondary-section[open] .client-section-toggle::before {
  content: "收起";
}

.client-secondary-section[open] .client-section-toggle::after {
  transform: translateY(-35%) rotate(225deg);
}

.client-secondary-section .client-service-card,
.client-secondary-section .client-context-card {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding: 14px;
}

.client-service-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-service-heading h4 {
  margin: 4px 0 0;
  font-size: 17px;
}

.client-readiness-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.client-readiness-strip div {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  padding: 9px 10px;
}

.client-readiness-strip div.is-done {
  border-color: #a9c9c5;
  background: #edf7f5;
}

.client-readiness-strip strong,
.client-readiness-strip span {
  display: block;
}

.client-readiness-strip strong {
  color: var(--ink);
  font-size: 12px;
}

.client-readiness-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.client-service-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.client-service-metrics div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.client-service-metrics strong,
.client-service-metrics span {
  display: block;
}

.client-service-metrics strong {
  color: var(--accent-strong);
  font-size: 20px;
}

.client-service-metrics span,
.client-service-note,
.client-service-empty {
  color: var(--muted);
  font-size: 12px;
}

.client-profile-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 12px 0 0;
  border: 1px solid #a9c9c5;
  border-radius: 999px;
  background: #edf7f5;
  padding: 6px 10px;
  color: var(--accent-strong);
  font-size: 12px;
}

.client-profile-contact strong {
  font-size: 12px;
}

.client-service-note-card {
  display: grid;
  gap: 4px;
  width: min(620px, 100%);
  margin: 12px 0 0;
  border-left: 3px solid var(--accent);
  background: var(--surface-muted);
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
}

.client-service-note-card strong {
  color: var(--accent-strong);
  font-size: 12px;
}

.client-service-note-card span {
  overflow-wrap: anywhere;
}

.service-progress {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--accent-soft);
}

.service-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.client-service-editor {
  margin-top: 12px;
}

.client-service-editor form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.client-service-editor label {
  display: grid;
  gap: 5px;
}

.client-service-editor label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.client-service-editor label > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.client-service-editor .service-check,
.client-service-editor .service-contact,
.client-service-editor .service-notes,
.client-service-editor button,
.client-service-editor .inline-status {
  grid-column: 1 / -1;
}

.client-service-editor .service-check {
  display: flex;
  align-items: center;
}

.client-context-card {
  margin: 18px 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
}

.client-context-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compact-danger {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.client-context-heading h4 {
  margin: 4px 0 0;
  font-size: 17px;
}

.client-context-editor {
  margin-top: 12px;
}

.client-context-editor form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.client-context-editor label {
  display: grid;
  gap: 5px;
}

.client-context-editor label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.client-context-editor .context-wide,
.client-context-editor button,
.client-context-editor .inline-status {
  grid-column: 1 / -1;
}

.client-context-editor textarea,
.client-service-editor textarea {
  min-height: 82px;
  resize: vertical;
}

.intake-scale-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.intake-scale-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.intake-wheel-heading {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.intake-wheel-heading strong {
  color: var(--ink);
  font-size: 13px;
}

.intake-wheel-heading span,
.client-intake-section-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.client-intake-section-note {
  margin: -4px 0 12px;
}

.client-intake-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.78), rgba(232, 244, 243, 0.6)),
    radial-gradient(circle at 14% 10%, rgba(15, 94, 100, 0.16), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(215, 179, 103, 0.2), transparent 24%),
    linear-gradient(135deg, #fbf7ee 0%, #f3efe5 48%, #e3f0ef 100%);
}

.client-intake-page::before,
.client-intake-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.16)),
    linear-gradient(315deg, rgba(16, 101, 107, 0.1), rgba(215, 179, 103, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 34px 90px rgba(31, 50, 52, 0.1);
  backdrop-filter: blur(18px);
}

.client-intake-page::before {
  width: min(36vw, 420px);
  height: min(52vw, 560px);
  right: -8vw;
  top: 10vh;
  border-radius: 42% 58% 46% 54% / 36% 44% 56% 64%;
  transform: rotate(-12deg);
}

.client-intake-page::after {
  width: min(30vw, 360px);
  height: min(28vw, 320px);
  left: 3vw;
  bottom: 6vh;
  border-radius: 32px;
  transform: rotate(10deg);
}

.client-intake-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.client-intake-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 14px;
}

.client-intake-nav a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 9px 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(29, 38, 40, 0.06);
  backdrop-filter: blur(14px);
}

.client-intake-nav-brand {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.client-intake-nav-brand img {
  display: block;
  width: clamp(170px, 16vw, 240px);
  height: auto;
}

#client-intake-back {
  margin-left: auto;
}

#client-intake-back::before {
  content: "←";
  margin-right: 6px;
}

.client-intake-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 252, 244, 0.58));
  box-shadow:
    0 28px 80px rgba(29, 38, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  padding: clamp(24px, 4vw, 42px);
  backdrop-filter: blur(16px);
}

.client-intake-brand {
  position: relative;
  display: grid;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
  isolation: isolate;
  --client-brand-size: clamp(82px, 12vw, 148px);
}

.client-intake-brand span {
  position: relative;
  z-index: 1;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.client-intake-brand img {
  display: block;
  width: clamp(176px, 26vw, 252px);
  height: auto;
}

.client-intake-brand-hero strong,
.client-intake-brand-hero em {
  position: relative;
  z-index: 1;
  display: block;
}

.client-intake-brand-hero strong {
  color: var(--accent-strong);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  font-size: var(--client-brand-size);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.94;
}

.client-intake-brand-hero em {
  color: rgba(11, 79, 84, 0.66);
  font-size: clamp(20px, 3vw, 34px);
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
}

.client-intake-brand-wave {
  position: absolute;
  left: calc(var(--client-brand-size) * 1.49);
  top: calc(var(--client-brand-size) * 0.47);
  z-index: 0;
  width: calc(var(--client-brand-size) * 4.4);
  height: calc(var(--client-brand-size) * 1.12);
  opacity: 0.34;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(13, 104, 110, 0.12));
}

.client-intake-brand-wave path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-intake-brand-wave .deep {
  stroke-width: 4.3;
}

.client-intake-brand-wave .light {
  stroke-width: 3.3;
}

@media (max-width: 720px) {
  .client-intake-brand-wave {
    left: calc(var(--client-brand-size) * 1.12);
    top: calc(var(--client-brand-size) * 0.54);
    width: min(calc(var(--client-brand-size) * 2.1), 190px);
    opacity: 0.28;
  }
}

.client-intake-hero h1 {
  margin: 0 0 12px;
  max-width: 760px;
  color: var(--accent-strong);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.client-intake-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.client-intake-form {
  display: grid;
  gap: 14px;
}

.self-assessment-form {
  margin-bottom: 16px;
}

.client-intake-form section {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 38px rgba(29, 38, 40, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: clamp(16px, 3vw, 22px);
  backdrop-filter: blur(14px);
}

.client-intake-form h2 {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 18px;
}

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

.client-intake-grid > label:has(.client-choice-grid) {
  align-content: start;
}

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

.client-choice-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-choice-grid.readiness {
  grid-template-columns: 1fr;
}

.client-choice-card {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.client-choice-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: .001;
  cursor: pointer;
}

.client-choice-card span {
  position: relative;
  z-index: 1;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35;
}

.client-choice-card:hover {
  border-color: #a9c9c5;
  background: #f4fafa;
}

.client-choice-card:has(input:checked) {
  border-color: var(--accent);
  background: #edf7f5;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.client-choice-card:has(input:focus-visible) {
  outline: 3px solid var(--accent-soft);
}

.client-pattern-grid {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-pattern-placeholder {
  grid-column: 1 / -1;
  border: 1px dashed #a9c9c5;
  border-radius: 8px;
  background: #edf7f5;
  padding: 16px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
}

.client-intake-form label {
  display: grid;
  gap: 6px;
}

.client-intake-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-intake-form input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.client-intake-form input[type="range"].client-score-source {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.client-score-scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(38px, 1fr));
  gap: 6px;
  width: 100%;
}

.client-score-scale::before {
  content: "";
  position: absolute;
  left: 19px;
  right: 19px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(13, 104, 110, .18), rgba(13, 104, 110, .06));
  transform: translateY(-50%);
  pointer-events: none;
}

.client-score-mark {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid #cfd9d5;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  box-shadow: none;
}

.client-score-mark:hover {
  border-color: #9fc6c2;
  background: #eef8f6;
}

.client-score-mark.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 104, 110, .16);
}

.client-score-swipe-hint {
  display: none;
}

@media (max-width: 720px) {
  .client-scale-grid {
    grid-template-columns: 1fr;
  }

  .client-score-scale {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    margin: 2px -2px 0;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
  }

  .client-score-scale::before {
    left: 18px;
    right: 18px;
    top: 23px;
  }

  .client-score-mark {
    flex: 0 0 36px;
    width: 36px;
    min-height: 44px;
    border-radius: 999px;
    scroll-snap-align: center;
  }

  .client-score-swipe-hint {
    display: block;
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }
}

.life-wheel-source-grid {
  display: none !important;
}

.life-wheel-radar {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(260px, .75fr);
  align-items: center;
  gap: 18px;
  margin: 18px 0 14px;
}

.life-wheel-chart {
  border: 1px solid rgba(189, 212, 207, .72);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 48%, rgba(223, 243, 240, .72), rgba(255, 255, 255, .62) 58%),
    rgba(255, 255, 255, .72);
  box-shadow:
    0 16px 36px rgba(22, 69, 72, .07),
    inset 0 1px 0 rgba(255, 255, 255, .78);
  padding: clamp(10px, 2vw, 18px);
}

.life-wheel-chart svg {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}

.life-wheel-ring {
  fill: none;
  stroke: rgba(13, 104, 110, .15);
  stroke-width: 1.2;
}

.life-wheel-axis {
  stroke: rgba(13, 104, 110, .16);
  stroke-width: 1.1;
}

.life-wheel-area {
  fill: rgba(13, 104, 110, .18);
  stroke: var(--accent);
  stroke-width: 3;
  filter: url(#lifeWheelGlow);
}

.life-wheel-dot {
  fill: rgba(255, 255, 255, .9);
  stroke: rgba(13, 104, 110, .38);
  stroke-width: 1.5;
  cursor: pointer;
  transition: r 140ms ease, fill 140ms ease, stroke 140ms ease;
}

.life-wheel-dot:hover,
.life-wheel-dot:focus-visible {
  fill: #edf7f5;
  stroke: var(--accent);
  outline: none;
}

.life-wheel-dot.is-selected {
  fill: var(--accent);
  stroke: var(--accent);
}

.life-wheel-axis-label {
  fill: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.life-wheel-tick-label {
  fill: rgba(100, 116, 118, .78);
  font-size: 10px;
  font-weight: 700;
}

.life-wheel-controls {
  display: grid;
  gap: 8px;
}

.life-wheel-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(218, 211, 197, .86);
  border-radius: 12px;
  background: rgba(255, 254, 251, .84);
  padding: 8px 10px;
}

.life-wheel-control span {
  min-width: 0;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.life-wheel-control strong {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.life-wheel-step {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(13, 104, 110, .28);
  border-radius: 999px;
  background: #fffefb;
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.life-wheel-step:hover {
  background: #edf7f5;
  border-color: rgba(13, 104, 110, .48);
}

@media (max-width: 720px) {
  .life-wheel-radar {
    grid-template-columns: 1fr;
  }

  .life-wheel-controls {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .life-wheel-control {
    grid-template-columns: minmax(0, 1fr) minmax(46px, auto) 34px 34px;
    min-height: 56px;
    padding: 10px 12px;
  }

  .life-wheel-control strong {
    min-width: 46px;
    text-align: center;
  }

  .life-wheel-step {
    display: grid;
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

.client-intake-form small {
  color: var(--muted);
  font-size: 11px;
}

.client-intake-wide,
.client-intake-check,
.client-intake-actions,
.client-intake-output {
  grid-column: 1 / -1;
}

.client-intake-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 9px;
  margin-top: 8px;
}

.client-intake-check span {
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.55;
}

.client-intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.client-intake-output {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.client-self-result {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  border: 1px solid #91bebb;
  border-radius: 8px;
  background: #f3fbfa;
  padding: 18px;
}

.client-self-result.hidden {
  display: none;
}

.client-self-result-head {
  position: relative;
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #c9ddda;
  padding-bottom: 12px;
}

.client-self-result-head span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.client-self-result-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.client-self-result-head p {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.client-self-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  width: fit-content;
  border: 1px solid #a9c9c5;
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 12px;
  color: var(--accent-strong);
}

.client-self-score strong {
  font-size: 34px;
  line-height: 1;
}

.client-self-score small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.client-self-dimensions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.client-self-dimensions div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 11px;
}

.client-self-dimensions strong {
  color: var(--accent-strong);
  font-size: 24px;
  line-height: 1;
}

.client-self-dimensions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.client-self-dimensions i {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e4ecea;
}

.client-self-dimensions b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.client-self-result-grid {
  display: grid;
  gap: 12px;
}

.client-self-result-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.client-self-result-grid h3 {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 15px;
}

.client-self-result-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.65;
}

.client-intake-context {
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  border: 1px solid #a9c9c5;
  border-radius: 8px;
  background: #edf7f5;
  padding: 10px 12px;
  color: var(--accent-strong);
}

.client-intake-context strong,
.client-intake-context span {
  display: block;
  font-size: 12px;
}

.intake-link-overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(17 24 39 / 0.35);
  padding: 18px;
}

.intake-link-modal {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgb(17 24 39 / 0.22);
  padding: 18px;
}

.intake-link-field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.intake-link-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-intake-history {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.client-intake-request-list,
.client-intake-version-list {
  display: grid;
  gap: 8px;
}

.client-intake-request-list article,
.client-intake-version-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px 12px;
}

.client-intake-request-list strong,
.client-intake-request-list span,
.client-intake-request-list small {
  display: block;
}

.client-intake-request-list strong,
.client-intake-version-list summary strong {
  color: var(--ink);
  font-size: 13px;
}

.client-intake-request-list span,
.client-intake-request-list small,
.client-intake-version-list summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.client-intake-version-list summary {
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.client-intake-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.client-intake-summary div {
  border-left: 3px solid var(--accent);
  background: var(--surface-muted);
  padding: 9px 11px;
}

.client-intake-summary strong {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
}

.client-intake-summary p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.client-consent-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.client-consent-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.client-consent-summary span.is-done {
  border-color: #a9c9c5;
  background: #edf7f5;
  color: var(--accent-strong);
}

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

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

.client-contract-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px 12px;
}

.client-contract-entry strong,
.client-contract-entry span {
  display: block;
}

.client-contract-entry strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

.client-contract-entry span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.client-contract-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.client-context-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px 12px;
}

.client-context-entry-head {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.client-context-entry-head div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.client-context-entry strong {
  color: var(--ink);
  font-size: 13px;
}

.client-context-entry span,
.client-context-entry p {
  color: var(--muted);
  font-size: 12px;
}

.client-context-entry p {
  margin: 7px 0 0;
  line-height: 1.6;
}

.client-context-entry-head button {
  flex: 0 0 auto;
}

.client-context-full {
  margin-top: 6px;
}

.client-context-full summary {
  width: fit-content;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.client-context-full p {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}

.customer-version-list {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.customer-version-list h4 {
  margin: 0;
  font-size: 14px;
}

.customer-version-row {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  color: var(--text);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.customer-version-row:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.customer-version-row span,
.customer-version-row small {
  color: var(--muted);
  font-size: 12px;
}

.customer-version-overlay {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(18 31 36 / 42%);
  padding: 24px;
}

.customer-version-modal {
  display: grid;
  gap: 14px;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefb;
  box-shadow: 0 18px 60px rgb(18 31 36 / 18%);
  padding: 20px;
}

.customer-version-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.customer-version-modal-head h3 {
  margin: 4px 0;
  font-size: 20px;
}

.customer-version-modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.customer-version-modal-actions {
  display: flex;
  justify-content: flex-start;
}

.customer-version-modal-list {
  display: grid;
  gap: 8px;
}

.customer-summary-version-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.customer-summary-version-header strong,
.customer-summary-version-header small {
  display: block;
}

.customer-summary-version-header small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.customer-summary-version-panel {
  display: grid;
  gap: 8px;
}

.customer-summary-version-button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefb;
  color: var(--text);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.customer-summary-version-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.customer-summary-version-button span,
.customer-summary-version-button small {
  color: var(--muted);
  font-size: 12px;
}

.archive-detail-summary h4 {
  margin: 0 0 7px;
  font-size: 14px;
}

.archive-detail-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.archive-note {
  margin-top: 12px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.archive-note strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.archive-edit-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.archive-edit-details summary {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.archive-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.archive-edit-wide {
  grid-column: 1 / -1;
}

.archive-save-button {
  width: 100%;
}

.archive-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.archive-form textarea {
  min-height: 92px;
}

.inline-status {
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 750;
}

.inline-status.error {
  border-color: #bf6b60;
  background: #f8e6e3;
  color: #7f3027;
}

.archive-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  padding: 12px;
}

.archive-summary strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--accent-strong);
  font-size: 28px;
}

.archive-summary .mode-badge {
  display: inline-flex;
  vertical-align: middle;
}

.customer-summary-section {
  border-left: 4px solid var(--accent);
}

.customer-summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.customer-summary-heading h3 {
  margin: 5px 0 6px;
}

.customer-summary-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.customer-summary-heading button {
  flex: 0 0 auto;
}

.customer-summary-editor {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.customer-summary-editor > label > span,
.customer-summary-fieldset legend {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.customer-summary-editor textarea {
  min-height: 76px;
}

.customer-summary-fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.evidence-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}

.evidence-editor textarea {
  background: var(--surface);
}

.evidence-editor details {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.evidence-editor summary {
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.evidence-editor blockquote {
  margin: 10px 0 4px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  color: var(--text);
}

.customer-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-report-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow-y: auto;
  background: #e8ece9;
  padding: 76px 24px 48px;
}

.customer-report-toolbar {
  position: fixed;
  z-index: 1001;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ccd4cf;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px max(24px, calc((100vw - 960px) / 2));
  backdrop-filter: blur(12px);
}

.customer-report-toolbar strong,
.customer-report-toolbar span {
  display: block;
}

.customer-report-toolbar span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.customer-report-toolbar-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.customer-report-toolbar-actions button {
  min-width: max-content;
  white-space: nowrap;
}

.customer-image-preview {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto;
  padding: 16px;
  border: 1px solid #d8d1c5;
  background: #fff;
  box-shadow: 0 12px 36px rgba(20, 39, 48, 0.12);
}

.customer-image-preview.hidden {
  display: none;
}

.customer-image-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: #667177;
}

.customer-image-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e1dbd0;
  background: #f7f3eb;
}

.customer-export-status {
  position: absolute;
  top: calc(100% + 8px);
  right: max(24px, calc((100vw - 960px) / 2));
  border: 1px solid #b9cec7;
  border-radius: 6px;
  background: #f4faf7;
  color: #28594f;
  padding: 7px 10px;
  box-shadow: 0 8px 24px rgba(24, 52, 45, 0.12);
  font-size: 12px;
}

.customer-export-status a {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent-strong);
  font-weight: 800;
  white-space: nowrap;
}

.client-report-page {
  width: min(100%, 900px);
  margin: 0 auto;
  background: #fff;
  color: #202725;
  box-shadow: 0 22px 70px rgba(28, 52, 45, 0.14);
}

.client-report-cover {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: #112131;
  color: #fff;
  padding: 42px 58px 52px;
}

.client-report-cover::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(214, 177, 107, 0.28);
  border-radius: 50%;
  content: "";
}

.client-report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coachlens-brand-mark {
  display: inline-grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(228, 189, 117, 0.5);
  border-radius: 50%;
  color: #e4bd75;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 0 20px rgba(227, 184, 102, 0.08);
}

.client-report-brand-logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(227, 184, 102, 0.12);
}

.client-report-cover-symbol {
  position: absolute;
  right: 30px;
  bottom: -24px;
  width: 330px;
  height: 330px;
  object-fit: contain;
  border-radius: 50%;
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
}

.client-report-brand strong,
.client-report-brand small {
  display: block;
}

.client-report-brand strong {
  color: #e4bd75;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  font-weight: 500;
}

.client-report-page:not(.branded-custom) .client-report-brand strong {
  font-family: inherit;
  font-weight: 850;
}

.client-report-brand small {
  margin-top: 2px;
  color: rgba(237, 214, 171, 0.72);
  font-size: 11px;
}

.coachlens-contract-mark {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  color: #ad7e34;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.client-report-meta {
  position: absolute;
  top: 43px;
  right: 58px;
  display: flex;
  gap: 8px;
}

.client-report-meta span {
  border: 1px solid rgba(218, 180, 108, 0.34);
  padding: 5px 9px;
  color: rgba(239, 217, 176, 0.82);
  font-size: 11px;
}

.client-report-eyebrow {
  margin: 54px 0 15px;
  color: #d9b36c;
  font-size: 11px;
  font-weight: 850;
}

.client-report-cover h1 {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1.22;
}

.client-report-opening {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.85;
}

.client-report-motto {
  position: absolute;
  right: 58px;
  bottom: 38px;
  margin: 0;
  color: rgba(231, 195, 126, 0.82);
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 16px;
}

.client-report-section {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  padding: 54px 58px;
}

.client-report-section + .client-report-section {
  border-top: 1px solid #e2e7e4;
}

.client-section-number {
  color: #b6955c;
  font-size: 12px;
  font-weight: 900;
}

.client-section-kicker {
  margin: 0 0 5px;
  color: #9b7438;
  font-size: 12px;
  font-weight: 850;
}

.client-report-section h2 {
  margin: 0 0 26px;
  font-size: 26px;
}

.client-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-topic-list span {
  border: 1px solid #ded0b8;
  background: #faf7f1;
  padding: 9px 13px;
  font-size: 14px;
}

.client-insight-list {
  display: grid;
  gap: 18px;
}

.client-insight-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  border-left: 3px solid #c19a58;
  background: #faf8f3;
  padding: 20px;
}

.client-card-index {
  color: #9b7438;
  font-size: 12px;
  font-weight: 900;
}

.client-insight-card p {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.65;
}

.client-insight-card blockquote {
  margin: 16px 0 0;
  color: #56635f;
  font-size: 14px;
  line-height: 1.8;
}

.client-insight-card blockquote span {
  display: block;
  margin-bottom: 4px;
  color: #9b7438;
  font-size: 11px;
  font-weight: 850;
}

.client-action-section {
  background: #fbfaf5;
}

.client-action-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-action-list li {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid #dedfd8;
  padding: 0 0 15px;
}

.client-action-check {
  color: #a87d3f;
  font-weight: 900;
}

.client-action-list strong,
.client-action-list small {
  display: block;
}

.client-action-list strong {
  font-size: 16px;
  line-height: 1.6;
}

.client-action-list small {
  margin-top: 6px;
  color: #737d79;
  line-height: 1.6;
}

.client-clue-section p:not(.client-section-kicker) {
  border-left: 2px solid #9bb8b0;
  margin: 12px 0;
  padding-left: 16px;
  color: #48534f;
  font-size: 16px;
  line-height: 1.7;
}

.client-report-footer {
  background: #f4f0e8;
  padding: 42px 58px;
}

.client-report-footer > p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #31413c;
  font-size: 17px;
  line-height: 1.8;
}

.client-report-footer div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.client-report-footer div span {
  width: 38px;
  height: 1px;
  background: #b08b4e;
}

.client-report-footer small {
  color: #70807b;
}

.client-report-powered {
  margin-top: 24px !important;
  color: #9a9f9c !important;
  font-size: 10px !important;
  text-align: right;
}

/* CoachLens 通用版沿用网站的米黄与聆镜青绿品牌语言。 */
.client-report-page:not(.branded-custom) {
  background: #f1e4d1;
  color: #123b39;
}

.client-report-page:not(.branded-custom) .client-report-cover {
  min-height: 430px;
  background: #12696d;
  color: #fff9ec;
}

.client-report-page:not(.branded-custom) .client-report-cover::before {
  display: none;
}

.client-report-page:not(.branded-custom) .client-report-cover::after {
  display: none;
}

.client-report-cover-wave {
  display: none;
}

.client-report-page:not(.branded-custom) .client-report-cover-wave {
  display: block;
  position: absolute;
  z-index: 0;
  right: -42px;
  top: 68px;
  width: 64%;
  height: auto;
  overflow: visible;
  opacity: 0.82;
  pointer-events: none;
}

.client-report-page:not(.branded-custom) .client-report-cover-wave path {
  fill: none;
  stroke-linecap: round;
}

.client-report-page:not(.branded-custom) .client-report-cover-wave .deep {
  stroke: rgba(238, 218, 177, 0.68);
  stroke-width: 4.3;
}

.client-report-page:not(.branded-custom) .client-report-cover-wave .light {
  stroke: rgba(168, 218, 207, 0.62);
  stroke-width: 3.3;
}

.client-report-coachlens-logo {
  display: block;
  position: relative;
  z-index: 2;
  width: 310px;
  height: auto;
  background: transparent;
  padding: 0;
  filter: brightness(0) invert(94%) sepia(18%) saturate(408%) hue-rotate(345deg) brightness(106%) drop-shadow(0 10px 24px rgba(0, 35, 35, 0.18));
}

.client-report-page:not(.branded-custom) .client-report-meta span {
  border-color: rgba(247, 232, 200, 0.5);
  background: rgba(4, 61, 62, 0.4);
  color: #fff4da;
}

.client-report-page:not(.branded-custom) .client-report-eyebrow {
  position: relative;
  z-index: 1;
  color: #f1d594;
  letter-spacing: 0.12em;
}

.client-report-page:not(.branded-custom) .client-report-cover h1 {
  max-width: 760px;
  color: #fffaf0;
  text-shadow: 0 2px 16px rgba(0, 45, 44, 0.2);
}

.client-report-page:not(.branded-custom) .client-report-opening {
  max-width: 760px;
  color: rgba(255, 250, 240, 0.88);
}

.client-report-page:not(.branded-custom) .client-report-motto {
  z-index: 1;
  color: #f0d592;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
}

.client-report-page:not(.branded-custom) .client-report-section {
  background: #ffffff;
}

.client-report-page:not(.branded-custom) .client-report-section + .client-report-section {
  border-top-color: #bdd8d1;
}

.client-report-page:not(.branded-custom) .client-section-number,
.client-report-page:not(.branded-custom) .client-section-kicker,
.client-report-page:not(.branded-custom) .client-card-index,
.client-report-page:not(.branded-custom) .client-insight-card blockquote span {
  color: #13766f;
}

.client-report-page:not(.branded-custom) .client-topic-list span {
  border-color: #a9cec5;
  background: #f3faf7;
  color: #0d5652;
  font-weight: 700;
}

.client-report-page:not(.branded-custom) .client-insight-card {
  border-left-color: #0b7772;
  border-top: 1px solid #b9d4cd;
  border-right: 1px solid #b9d4cd;
  border-bottom: 1px solid #b9d4cd;
  background: #fff;
  box-shadow: 0 10px 24px rgba(4, 77, 75, 0.06);
}

.client-report-page:not(.branded-custom) .client-insight-card blockquote {
  color: #294b47;
}

.client-report-page:not(.branded-custom) .client-clue-section {
  background: #ffffff;
}

.client-report-page:not(.branded-custom) .client-clue-section p:not(.client-section-kicker) {
  border-left-color: #56a99c;
  color: #315a56;
}

.client-report-page:not(.branded-custom) .client-report-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 116%, rgba(8, 112, 108, 0.18), transparent 42%),
    linear-gradient(135deg, #f5ecdc 0%, #e7efe7 52%, #d7e8e2 100%);
}

.client-report-page:not(.branded-custom) .client-report-footer::before {
  position: absolute;
  right: -7%;
  bottom: 16%;
  width: 56%;
  height: 34%;
  border-top: 2px solid rgba(8, 112, 108, 0.16);
  border-radius: 50%;
  content: "";
  transform: rotate(-5deg);
  pointer-events: none;
}

.client-report-page:not(.branded-custom) .client-report-footer > * {
  position: relative;
  z-index: 1;
}

.client-report-page:not(.branded-custom) .client-report-footer > p {
  color: #244d48;
}

.client-report-share {
  display: grid !important;
  grid-template-columns: minmax(330px, 1fr) 132px;
  align-items: center !important;
  gap: 24px !important;
  width: 100%;
  margin-top: 32px !important;
  border-top: 1px solid rgba(35, 103, 94, 0.22);
  padding-top: 26px;
}

.client-report-share-copy {
  display: grid !important;
  grid-template-columns: 150px minmax(170px, 1fr);
  grid-template-areas:
    "logo tagline"
    "logo domain"
    "logo hint";
  align-items: center !important;
  column-gap: 18px !important;
  row-gap: 3px !important;
  min-width: 0;
  margin: 0 !important;
}

.client-report-share-copy > img {
  grid-area: logo;
  width: 150px;
  height: auto;
  flex: 0 0 auto;
}

.client-report-share-copy > div {
  display: contents !important;
}

.client-report-share-copy strong {
  grid-area: tagline;
  color: #164f4c;
  font-size: 14px;
  line-height: 1.5;
}

.client-report-share-copy a {
  grid-area: domain;
  width: auto !important;
  height: auto !important;
  color: #08706c;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
}

.client-report-share-copy small {
  grid-area: hint;
  color: #4f7772;
  font-size: 11px;
}

.client-report-qr {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  border: 8px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 79, 75, 0.14);
}

.client-report-qr-block {
  display: grid !important;
  justify-items: center;
  gap: 8px !important;
  flex: 0 0 auto;
  margin: 0 !important;
}

.client-report-qr-block strong {
  color: #164f4c;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.branded-custom .client-report-share {
  grid-template-columns: minmax(0, 320px) 132px;
  column-gap: 16px !important;
  justify-content: end;
  border-top-color: rgba(176, 139, 78, 0.28);
}

.branded-custom .client-report-share-copy {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "tagline"
    "domain"
    "hint";
  width: min(100%, 320px);
  justify-self: end;
  justify-items: end;
  text-align: right;
}

.branded-custom .client-report-share-copy > img {
  display: none;
}

.branded-custom .client-report-share-copy strong,
.branded-custom .client-report-share-copy a {
  color: #705625;
}

.branded-custom .client-report-share-copy small {
  color: #7c7569;
}

@media print {
  body {
    background: #fff;
  }

  body > *:not(.customer-report-overlay) {
    display: none !important;
  }

  .customer-report-overlay {
    position: static;
    overflow: visible;
    background: #fff;
    padding: 0;
  }

  .customer-report-toolbar {
    display: none !important;
  }

  .client-report-page {
    width: 100%;
    box-shadow: none;
  }

  .client-report-section,
  .client-insight-card,
  .client-action-list li {
    break-inside: avoid;
  }

  @page {
    size: A4;
    margin: 0;
  }
}

@media (max-width: 780px) {
  .access-gate {
    padding: 20px 12px;
  }

  .glass-one {
    width: 360px;
    height: 420px;
    right: -180px;
    top: 40px;
  }

  .glass-two,
  .glass-three {
    opacity: 0.45;
  }

  .access-card {
    border-radius: 18px;
    padding: 24px;
  }

  .access-entry-grid,
  .client-guide-card-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .access-start,
  .access-login-panel {
    width: 100%;
  }

  .client-guide-screen {
    padding: 18px 14px 34px;
  }

  .client-guide-hero {
    min-height: auto;
    padding: 38px 0 28px;
  }

  .comparison-table > div {
    grid-template-columns: 1fr;
  }

  .client-guide-final {
    display: grid;
  }

  .topbar,
  .section-heading {
    display: block;
  }

  .account-area {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .site-footer,
  .admin-login,
  .admin-create,
  .tier-overview {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quota-summary {
    text-align: left;
  }

  .archive-data-actions {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .new-client-form {
    grid-template-columns: 1fr;
  }

  .archive-detail-actions .archive-danger-action,
  .archive-data-actions .archive-danger-action {
    margin-left: auto;
  }

  .privacy-grid,
  .metrics,
  .score-band,
  .score-grid,
  .practice-focus-steps,
  .compare-grid,
  .settings-grid,
    .archive-toolbar,
    .archive-layout,
    .hours-summary,
    .hours-form,
    .contract-layout,
  .contract-form-grid,
  .contract-parties {
    grid-template-columns: 1fr;
  }

  .learning-import-context,
  .learning-library-heading,
  .learning-review-card-heading,
  .linked-supervision-library-heading {
    display: grid;
  }

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

  .privacy-map-row {
    grid-template-columns: 1fr;
  }

  .privacy-map-arrow {
    justify-self: flex-start;
  }

  .client-service-metrics,
  .client-readiness-strip,
  .client-service-editor form {
    grid-template-columns: 1fr;
  }

  .hours-wide {
    grid-column: auto;
  }

  .contract-form {
    position: static;
  }

  .contract-wide {
    grid-column: auto;
  }

  .contract-preview {
    padding: 30px 22px;
  }

  .contract-document-header {
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 14px;
  }

  .contract-brand {
    width: 178px;
  }

  .contract-brand img {
    width: 172px;
    height: 70px;
  }

  .contract-title-block h2 {
    font-size: 24px;
  }

  .archive-item {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .archive-list {
    max-height: min(440px, 52vh);
    overflow-y: auto;
    padding-right: 4px;
  }

  .archive-detail-column {
    position: static;
  }

  .archive-edit-grid {
    grid-template-columns: 1fr;
  }

  .archive-edit-wide {
    grid-column: auto;
  }

  .customer-summary-heading {
    display: grid;
  }

  .customer-summary-heading button {
    width: 100%;
  }

  .customer-report-overlay {
    padding: 64px 0 0;
  }

  .customer-report-toolbar {
    padding: 9px 12px;
  }

  .customer-report-toolbar > div:first-child span {
    display: none;
  }

  .customer-report-toolbar-actions button {
    padding: 8px 10px;
    font-size: 12px;
  }

  .customer-report-toolbar-actions {
    overflow-x: auto;
    max-width: 70vw;
  }

  .customer-report-toolbar-actions button {
    flex: 0 0 auto;
  }

  .client-report-cover {
    min-height: 370px;
    padding: 30px 24px 42px;
  }

  .client-report-page:not(.branded-custom) .client-report-cover {
    min-height: 400px;
  }

  .client-report-page:not(.branded-custom) .client-report-cover-wave {
    top: 82px;
    right: -160px;
    width: 108%;
    opacity: 0.52;
  }

  .client-report-meta {
    position: static;
    margin-top: 20px;
  }

  .client-report-eyebrow {
    margin-top: 42px;
  }

  .client-report-cover h1 {
    font-size: 32px;
  }

  .client-report-opening {
    font-size: 15px;
  }

  .client-report-motto {
    right: 24px;
    bottom: 24px;
  }

  .client-report-section {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 38px 24px;
  }

  .client-report-section h2 {
    font-size: 22px;
  }

  .client-insight-card {
    grid-template-columns: 1fr;
  }

  .client-report-footer {
    padding: 36px 24px;
  }

  .client-report-coachlens-logo {
    width: min(420px, 118vw);
  }

  .client-report-share,
  .client-report-share-copy {
    align-items: flex-start !important;
  }

  .branded-custom .client-report-share {
    grid-template-columns: minmax(0, 1fr) 96px;
    justify-content: stretch;
  }

  .client-report-share-copy {
    display: grid !important;
  }

  .client-report-share-copy > img {
    width: 138px;
  }

  .client-report-qr {
    width: 96px;
    height: 96px;
  }

  .panel {
    padding: 16px;
  }

  h1 {
    font-size: 25px;
  }

  .report-hours-card {
    grid-template-columns: 1fr;
  }

  .report-hours-controls {
    grid-template-columns: 1fr 1fr;
  }

  .report-hours-controls button {
    grid-column: 1 / -1;
  }
}
