  

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--cream);
    color: var(--text);
    font-family: var(--body);
    font-size: var(--t-body);
    line-height: 1.55;
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; }

  .wordmark { font-family: var(--display); font-weight: 600; font-size: var(--t-h3); color: var(--text); position: relative; padding-inline-start: 18px; }
  .wordmark::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; background: var(--forest); border-radius: 50%; }
  .wordmark .bali { display: inline-block; }

  .page {
    margin: 0 auto;
    padding: 40px 32px 80px;
  }
  .back-link { margin-bottom: 14px; }
  h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 6px;
  }
  .lede {
    color: var(--text-muted);
    font-size: var(--t-body);
    margin-bottom: 36px;
  }

  /* Top-level grid: identity sidebar on the left, settings on right */
  .acc-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
  }
  .identity-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    padding: 22px;
  }
  .identity-card .avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display);
    font-size: 20px; font-weight: 600;
    margin-bottom: 12px;
  }
  .identity-card .name {
    font-family: var(--display);
    font-weight: 600;
    font-size: var(--t-lead);
    color: var(--text);
  }
  .identity-card .email {
    font-size: var(--t-small);
    color: var(--text-muted);
    margin-top: 2px;
  }
  .identity-card .stat-row {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    border-top: 1px solid var(--rule);
    font-size: var(--t-small);
    margin-top: 14px;
  }
  .identity-card .stat-row + .stat-row { border-top: 1px solid var(--rule); }
  .identity-card .stat-row span:first-child { color: var(--text-muted); }

  /* Right side: stacked sections */
  .settings-col { display: flex; flex-direction: column; gap: var(--s-5); }
  .section {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    padding: 24px 28px;
  }
  .section-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 20px;
    margin: 0;
  }
  .section-head .stub {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    background: var(--cream-deep);
    padding: 3px 8px;
    border-radius: var(--r-xs);
  }
  .section .row {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--s-3) 0;
    border-top: 1px solid var(--rule);
  }
  .section .row:first-of-type { border-top: none; }
  .section .row .label {
    font-size: 14px;
    color: var(--text);
  }
  .section .row .value {
    font-size: var(--t-small);
    color: var(--text-muted);
  }
  .lang-pills {
    display: flex; gap: var(--s-2);
  }
  .lang-pill {
    border: 1px solid var(--rule);
    background: var(--surface);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    font-size: var(--t-small);
    color: var(--text);
    cursor: pointer;
    transition: 120ms;
  }
  .lang-pill:hover { border-color: var(--ink-soft); }
  .lang-pill.active {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
  }
  .stub-list { color: var(--text-muted); font-size: var(--t-small); }
  .stub-list li { padding: 6px 0; }

  .help-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-4);
  }
  .help-block .h-card {
    background: var(--cream-deep);
    padding: 14px;
    border-radius: 10px;
  }
  .help-block h4 {
    margin: 0 0 var(--s-1);
    font-family: var(--display);
    font-weight: 600;
    font-size: var(--t-body);
  }
  .help-block p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--t-small);
  }
  .help-block a {
    color: var(--forest);
    font-size: var(--t-small);
    text-decoration: underline;
  }

  .danger-row {
    color: var(--forest-deep);
  }
  .danger-row button {
    background: transparent;
    border: 1px solid var(--forest);
    color: var(--forest-deep);
    padding: 6px 14px;
    border-radius: var(--r-sm);
    cursor: pointer;
    font-size: var(--t-small);
  }
  .danger-row button:hover {
    background: var(--g10);
  }

  /* iOS-style toggle for therapist notification rows */
  .toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
  .toggle input { opacity: 0; width: 0; height: 0; }
  .toggle span {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--rule);
    border-radius: var(--r-pill);
    transition: 160ms;
  }
  .toggle span::before {
    position: absolute; content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 160ms;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }
  .toggle input:checked + span { background: var(--forest); }
  .toggle input:checked + span::before { transform: translateX(20px); }

  @media (max-width: 900px) {
    .acc-grid { grid-template-columns: 1fr; }
    .help-block { grid-template-columns: 1fr; }
  }
