  /* ===== App shell (Plataan EHR) ===== */
  .app { display: flex; min-height: calc(100vh - 31px); }
  .side { width: 226px; background: #fbf9f4; border-right: 1px solid var(--line); padding: 20px 13px 16px; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
  .brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 20px; }
  .brand .logo { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; font-family: var(--f-serif); }
  .brand h1 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); font-family: var(--f-serif); }
  .brand h1 span { color: var(--teal); }
  .brand .bsub { font-size: 10.5px; color: var(--text2); margin-top: -1px; font-family: 'Inter', sans-serif; }
  .nav-lbl { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text3); padding: 13px 10px 6px; }
  .nav-item { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text2); cursor: pointer; transition: background 0.15s, color 0.15s; }
  .nav-item:hover { background: #f1ede6; color: var(--text); }
  .nav-item.active { background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; }
  .nav-item svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.85; }
  .side-foot { margin-top: auto; padding: 14px 9px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
  .test-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; color: var(--sand-ink); background: var(--sand-soft); border: 1px solid var(--sand-line); border-radius: 999px; padding: 3px 10px; width: fit-content; }
  .test-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
  .side-foot .v { font-size: 10px; color: var(--text3); }

  .main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; container: ehr / inline-size; }
  .top { min-height: 60px; background: rgba(255,253,249,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px 24px; }
  .top h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; font-family: var(--f-serif); }
  .search { display: none; flex: 1; max-width: 330px; min-width: 300px; align-items: center; gap: 8px; background: #f1ede6; border: 1px solid transparent; border-radius: 999px; padding: 7px 15px; font-size: 12px; color: var(--text3); transition: border 0.15s; white-space: nowrap; overflow: hidden; }
  .top h2 { flex-shrink: 0; max-width: 100%; overflow-wrap: anywhere; }
  .search:hover { border-color: var(--line2); }
  .search svg { width: 13px; height: 13px; }
  .search .kbd { margin-left: auto; font-size: 10px; color: var(--text3); background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; font-family: 'Fira Mono', monospace; }
  .top-right { min-width: 0; max-width: 560px; flex: 1 1 420px; margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .bell { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; color: var(--text2); }
  .bell svg { width: 15px; height: 15px; }
  .bell .bdot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--plum); border: 1.5px solid var(--card); }
  .dezi-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px 5px 6px; background: var(--card); box-shadow: var(--shadow); }
  .dezi-pill .av { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sand-soft); color: var(--sand-ink); font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1px solid var(--sand-line); }
  .dezi-pill b { font-size: 12px; font-weight: 600; display: block; line-height: 1.3; }
  .dezi-pill .session-description { font-size: 10px; color: var(--text2); display: block; line-height: 1.3; }
  .dezi-tag { flex-shrink: 0; white-space: nowrap; font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: var(--teal-deep); background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 999px; padding: 2px 8px; }

  .session-details { min-width: 0; overflow-wrap: anywhere; }
  .top-right > form { flex-shrink: 0; }
  @container ehr (min-width: 1280px) {
    .top .search { display: flex; }
    .top-right { flex: 0 1 560px; }
  }
  @container ehr (max-width: 680px) {
    .top-right { flex-basis: 100%; max-width: none; }
    .bell { display: none; }
  }
  @media (max-width: 700px) {
    .app { flex-direction: column; }
    .side { width: 100%; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand { padding: 0; }
    .side .nav-lbl, .side .nav-item, .side-foot { display: none; }
    .top { padding: 12px 16px; }
    .content { padding: 16px; }
  }

  /* ===== Login (split screen) ===== */
  .login-split { display: flex; min-height: calc(100vh - 31px); }
  .ls-left { flex: 1.15; background: radial-gradient(700px 420px at 60% 40%, #f3efe7 0%, var(--bg) 70%); display: flex; flex-direction: column; padding: 30px 38px; }
  .ls-brand { display: flex; align-items: center; gap: 11px; }
  .ls-brand .logo { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 19px; font-family: var(--f-serif); }
  .ls-brand h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; font-family: var(--f-serif); }
  .ls-brand h1 span { color: var(--teal); }
  .ls-brand .bsub { font-size: 11px; color: var(--text2); margin-top: -2px; }
  .ls-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
  .ls-cap { text-align: center; max-width: 400px; }
  .ls-cap b { font-family: var(--f-serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; display: block; }
  .ls-cap span { font-size: 12.5px; color: var(--text2); margin-top: 6px; display: block; line-height: 1.65; }
  .ls-foot { font-size: 10.5px; color: var(--text3); }

  .ls-right { flex: 1; background: linear-gradient(180deg, #262119 0%, #1b1713 100%); color: #f0ebe1; display: flex; align-items: center; justify-content: center; padding: 40px 30px; }
  .ls-form { width: 330px; text-align: center; }
  .ls-form h2 { font-family: var(--f-serif); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; color: #f7f3ea; line-height: 1.25; }
  .ls-form .fsub { font-size: 12px; color: #b3a89a; margin: 10px 0 24px; line-height: 1.65; }
  .dz-card { background: rgba(247,245,241,0.06); border: 1px solid rgba(247,245,241,0.14); border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; text-align: left; }
  .dz-row { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 12px; color: #d8d0c2; }
  .dz-row svg { width: 14px; height: 14px; color: #7fc7bc; flex-shrink: 0; }
  .btn.cream { background: var(--bg); color: var(--ink); border: none; box-shadow: 0 3px 12px rgba(0,0,0,0.35); width: 100%; justify-content: center; }
  .btn.cream:hover { background: #fffdf9; transform: translateY(-1px); }
  .ls-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #8f8578; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
  .ls-or::before, .ls-or::after { content: ''; flex: 1; height: 1px; background: rgba(247,245,241,0.14); }
  .btn.dark-ghost { background: transparent; color: #b3a89a; border: 1px solid rgba(247,245,241,0.22); width: 100%; justify-content: center; cursor: not-allowed; }
  .ls-note { font-size: 10.5px; color: #8f8578; margin-top: 20px; line-height: 1.6; }

  .next-list { margin: 10px 0 2px 18px; font-size: 12.5px; line-height: 1.7; color: var(--text2); }
  .next-list b { color: var(--text); font-weight: 600; }
