/* CLOE Dashboard — Onda 3 redesign */
:root {
  --bg-0: #f9fdff;
  --bg-1: #eef8ff;
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(21, 104, 211, 0.1);
  --line-strong: rgba(21, 104, 211, 0.18);
  --navy: #06245d;
  --navy-2: #123975;
  --blue: #22a9e6;
  --blue-2: #0c7786;
  --cyan: #8fd2e9;
  --soft: #6f82ad;
  --muted: #9aad0;
  --green: #00a986;
  --red: #ee3b54;
  --amber: #e5a000;
  --shadow: 0 22px 58px rgba(15, 76, 151, 0.075);
  --shadow-soft: 0 14px 36px rgba(15, 76, 151, 0.055);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--navy);
  background:
    radial-gradient(circle at 12% 8%, rgba(82, 177, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 2%, rgba(3, 120, 255, 0.09), transparent 28%),
    linear-gradient(135deg, var(--bg-0), var(--bg-1) 55%, #ffffff);
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(8, 43, 103, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 43, 103, 0.014) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}

button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }

[hidden] { display: none !important; }

/* ============================================================
   AUTH SHELL — tela de login/registro/reset
   ============================================================ */
.auth-shell {
  width: min(1320px, calc(100vw - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  display: grid;
  grid-template-columns: minmax(360px, 480px) 1fr;
  border: 1px solid rgba(21, 104, 211, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 26px 72px rgba(15, 76, 151, 0.08);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.auth-panel {
  padding: 48px 40px;
  display: grid;
  align-content: center;
  gap: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 250, 255, 0.78));
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.auth-tag {
  margin-top: 4px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 440;
  line-height: 1.4;
}

.auth-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  background: rgba(247, 252, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.auth-tab {
  padding: 10px 6px;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  font-size: 13px;
  font-weight: 580;
  transition: 0.16s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #082b67 0%, #0c7786 58%, #22a9e6 100%);
  color: white;
  box-shadow: 0 8px 18px rgba(8, 43, 103, 0.18);
}

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

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.01em;
}

.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 540;
  outline: none;
  transition: 0.14s ease;
}

.auth-form input:focus {
  border-color: rgba(12, 119, 134, 0.46);
  box-shadow: 0 0 0 4px rgba(12, 119, 134, 0.1);
}

.auth-submit {
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #082b67 0%, #0c7786 58%, #22a9e6 100%);
  color: white;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(4, 120, 255, 0.22);
  transition: 0.18s ease;
}

.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(4, 120, 255, 0.26); }
.auth-submit:active { transform: translateY(0); }

.auth-submit.secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy-2);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.auth-submit.secondary:hover { background: rgba(255, 255, 255, 0.96); }

.auth-status {
  min-height: 22px;
  margin-top: 4px;
  color: var(--blue-2);
  font-size: 13px;
  font-weight: 560;
}

.auth-status.error { color: var(--red); }

.auth-help {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(12, 119, 134, 0.06);
  border: 1px solid rgba(12, 119, 134, 0.12);
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 540;
  line-height: 1.45;
}

.auth-art {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 169, 230, 0.22), transparent 38%),
    radial-gradient(circle at 80% 80%, rgba(12, 119, 134, 0.18), transparent 40%),
    linear-gradient(135deg, #0a3680, #0c7786 70%);
  display: grid;
  place-items: center;
  padding: 40px;
  overflow: hidden;
}

.auth-art-inner {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 4 / 3;
}

.auth-art-card {
  position: absolute;
  inset: 8% 12% 12% 8%;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 60px rgba(8, 43, 103, 0.34);
  padding: 32px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.auth-art-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 169, 230, 0.2), rgba(12, 119, 134, 0.12));
}
.auth-art-line.short { width: 70%; }
.auth-art-line.shorter { width: 45%; }

.auth-art-pill {
  margin-top: 8px;
  width: 140px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #082b67, #22a9e6);
}

.auth-art-glow {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 210, 233, 0.5), transparent 70%);
  filter: blur(40px);
}

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; margin: 0; width: 100%; min-height: 100vh; border-radius: 0; border: 0; }
  .auth-art { display: none; }
  .auth-panel { padding: 28px 22px; }
}

/* ============================================================
   APP SHELL — dashboard principal
   ============================================================ */
.app-shell {
  width: min(1720px, calc(100vw - 28px));
  margin: 14px auto;
  min-height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid rgba(21, 104, 211, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 26px 72px rgba(15, 76, 151, 0.08);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.sidebar {
  position: relative;
  padding: 34px 22px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 250, 255, 0.78)),
    radial-gradient(circle at 0% 92%, rgba(89, 219, 255, 0.16), transparent 34%);
  border-right: 1px solid rgba(21, 104, 211, 0.09);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand { display: flex; align-items: center; gap: 14px; padding: 0 12px 18px; }

.logo-mark {
  width: 56px;
  height: 56px;
  position: relative;
  flex: none;
  border-radius: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='10' y1='12' x2='84' y2='88' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23082b67'/%3E%3Cstop offset='0.62' stop-color='%23095a72'/%3E%3Cstop offset='1' stop-color='%230c7786'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='22' y1='22' x2='76' y2='82' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23258fbe'/%3E%3Cstop offset='1' stop-color='%230d7688'/%3E%3C/linearGradient%3E%3ClinearGradient id='g3' x1='29' y1='36' x2='55' y2='74' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23a6d9ea'/%3E%3Cstop offset='1' stop-color='%2336aac8'/%3E%3C/linearGradient%3E%3ClinearGradient id='g4' x1='47' y1='44' x2='60' y2='57' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2327b2ef'/%3E%3Cstop offset='1' stop-color='%231ea3e3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M82.5 72.5A38.5 38.5 0 1 1 81.5 27.5' fill='none' stroke='url(%23g1)' stroke-width='12' stroke-linecap='round'/%3E%3Cpath d='M74 68A28.5 28.5 0 1 1 57 20.5' fill='none' stroke='url(%23g2)' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M37 74C28 63 28 44 37.5 33C33 46 34 59 45.5 70.5' fill='url(%23g3)'/%3E%3Ccircle cx='56' cy='50' r='8' fill='url(%23g4)'/%3E%3C/svg%3E")
    center / contain no-repeat;
  box-shadow: none;
}

.brand-name {
  font-size: 28px;
  font-weight: 680;
  letter-spacing: 0.3em;
  color: var(--navy);
}

.nav { display: flex; flex-direction: column; gap: 10px; }

.nav-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 18px;
  color: var(--navy-2);
  background: transparent;
  transition: 0.22s ease;
  text-align: left;
}

.nav-button svg { width: 24px; height: 24px; stroke-width: 1.65; }
.nav-button span { font-size: 16px; font-weight: 560; letter-spacing: -0.015em; }

.nav-button.active {
  color: white;
  background: linear-gradient(135deg, #082b67 0%, #0c7786 58%, #22a9e6 100%);
  box-shadow: 0 16px 34px rgba(8, 43, 103, 0.18);
}

.nav-button:not(.active):hover { background: rgba(10, 120, 255, 0.08); transform: translateX(2px); }

.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

.mini-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 440;
  border-radius: 14px;
  background: transparent;
  transition: 0.16s ease;
}

.mini-link:hover { background: rgba(10, 120, 255, 0.06); }
.mini-link svg { width: 20px; height: 20px; stroke-width: 1.65; }

.clinic-card {
  margin-top: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(21, 104, 211, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.clinic-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d9efff, #ffffff);
  color: var(--navy-2);
  font-weight: 800;
  position: relative;
  border: 1px solid rgba(3, 120, 255, 0.12);
}

.clinic-avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 10px;
  height: 10px;
  background: #1fc994;
  border-radius: 50%;
  border: 2px solid #fff;
}

.clinic-text strong { display: block; font-size: 13px; font-weight: 620; margin-bottom: 2px; }
.clinic-text span { color: var(--soft); font-size: 12px; font-weight: 440; }

.main {
  padding: 34px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 26px;
  min-width: 0;
}

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; }

.hello h1 {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.08;
  margin-bottom: 8px;
}

.hello p { color: var(--soft); font-size: 16px; font-weight: 420; }

.top-actions { display: flex; align-items: center; gap: 14px; }

.poll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
  font-weight: 560;
}

.poll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 169, 134, 0.16);
  animation: poll-pulse 2.6s ease-in-out infinite;
}

.poll-indicator.fetching .poll-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(229, 160, 0, 0.16); }
.poll-indicator.error .poll-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(238, 59, 84, 0.16); }

@keyframes poll-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.bell, .ia-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(15, 76, 151, 0.055);
}

.bell {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--navy-2);
}

.bell::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(5, 123, 255, 0.13);
}

.ia-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 20px;
  color: var(--blue-2);
  border-radius: 999px;
  font-weight: 620;
  background: rgba(255, 255, 255, 0.72);
}

.content-screen { display: none; min-height: 0; }
.content-screen.active { display: block; }

.card, .assistant-shell, .drawer {
  position: relative;
  border: 1px solid rgba(21, 104, 211, 0.1);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.card { padding: 22px; }
.card.full-panel { min-height: 670px; }

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

.section-title h2 { font-size: 28px; font-weight: 620; letter-spacing: -0.046em; margin-bottom: 8px; }
.section-title p { color: var(--soft); font-weight: 420; line-height: 1.5; }

.pill-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(4, 120, 255, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 580;
  transition: 0.18s ease;
}

.pill-button:hover { border-color: rgba(12, 119, 134, 0.34); }
.pill-button.primary, .pill-button.active {
  color: white;
  background: linear-gradient(135deg, #082b67 0%, #0c7786 58%, #22a9e6 100%);
  box-shadow: 0 12px 26px rgba(12, 119, 134, 0.16);
}

/* Principal: chat */
.assistant-shell {
  min-height: 690px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 26px;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(10, 83, 166, 0.08);
}

.chat-id { display: flex; align-items: center; gap: 14px; }
.chat-id .logo-mark { width: 48px; height: 48px; }
.chat-id h2 { font-size: 18px; font-weight: 620; letter-spacing: -0.02em; margin-bottom: 3px; }
.chat-id p { color: var(--soft); font-size: 13px; font-weight: 420; }

.chat-area {
  position: relative;
  z-index: 1;
  padding: 34px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 920px;
  overflow-y: auto;
  max-height: 460px;
}

.message {
  max-width: 720px;
  padding: 18px 20px;
  border-radius: 20px;
  line-height: 1.58;
  font-size: 15px;
  font-weight: 420;
  box-shadow: 0 12px 28px rgba(12, 68, 138, 0.045);
}

.message.cloe {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(12, 119, 134, 0.14);
}

.message.user {
  margin-left: auto;
  color: white;
  background: linear-gradient(135deg, #082b67 0%, #0c7786 58%, #22a9e6 100%);
}

.message.thinking { font-style: italic; color: var(--soft); }

.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.suggestion {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(12, 119, 134, 0.12);
  background: rgba(255, 255, 255, 0.48);
  color: rgba(18, 57, 117, 0.7);
  font-size: 12px;
  font-weight: 500;
  transition: 0.18s ease;
}

.suggestion:hover { color: var(--blue-2); background: rgba(255, 255, 255, 0.86); border-color: rgba(12, 119, 134, 0.26); }

.composer {
  position: relative;
  z-index: 1;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 46px rgba(17, 80, 164, 0.08);
  padding: 20px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}

.composer textarea {
  width: 100%;
  min-height: 52px;
  border: 0;
  outline: none;
  resize: none;
  color: var(--navy);
  background: transparent;
  font-size: 16px;
  font-weight: 420;
}

.composer textarea::placeholder { color: var(--soft); }
.composer-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.attach-row { display: flex; gap: 12px; align-items: center; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--navy-2);
  background: rgba(245, 251, 255, 0.75);
  border: 1px solid rgba(12, 119, 134, 0.12);
  transition: 0.18s ease;
}

.icon-btn:hover { background: rgba(4, 120, 255, 0.08); color: var(--blue-2); }

.send-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #082b67 0%, #0c7786 58%, #22a9e6 100%);
  box-shadow: 0 16px 34px rgba(3, 112, 245, 0.3);
  transition: 0.2s ease;
}

.send-btn:hover { transform: translateY(-2px) scale(1.02); }
.send-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.footnote { color: #8aa2c8; font-size: 11px; font-weight: 430; margin-top: 10px; padding-left: 6px; }

/* Agenda */
.agenda-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

.doctor-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.doctor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  min-width: 0;
  transition: 0.18s ease;
  text-align: left;
  font-weight: 580;
}

.doctor-card.active {
  border-color: rgba(12, 119, 134, 0.46);
  box-shadow: 0 12px 30px rgba(12, 119, 134, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 248, 255, 0.92));
}

.avatar-soft {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-2);
  background: linear-gradient(135deg, #e8f6ff, #ffffff);
  border: 1px solid rgba(4, 120, 255, 0.13);
  flex: none;
  font-weight: 850;
}

.doctor-data strong, .patient-main strong { display: block; font-size: 13px; font-weight: 620; margin-bottom: 3px; }
.doctor-data span, .patient-main span { display: block; color: var(--soft); font-size: 11px; font-weight: 420; }
.doctor-data small { display: block; margin-top: 4px; color: var(--blue-2); font-size: 10px; font-weight: 800; }

.patient-table {
  border: 1px solid rgba(10, 83, 166, 0.08);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  overflow: hidden;
}

.patient-row {
  width: 100%;
  display: grid;
  grid-template-columns: 70px 1fr 116px 124px 110px 118px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(10, 83, 166, 0.07);
  background: transparent;
  color: var(--navy);
  text-align: left;
  transition: 0.16s ease;
}

.patient-row:last-child { border-bottom: 0; }
.patient-row:hover { background: rgba(12, 119, 134, 0.055); }
.patient-row.selected { background: rgba(4, 120, 255, 0.09); }
.patient-time { color: var(--navy-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.patient-type { color: var(--soft); font-size: 12px; font-weight: 420; }

.status, .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status.confirmado { color: var(--green); background: rgba(0, 169, 134, 0.09); }
.status.aguardando { color: var(--amber); background: rgba(229, 160, 0, 0.11); }
.status.pendente { color: var(--red); background: rgba(238, 59, 84, 0.09); }
.tag { color: var(--blue-2); background: rgba(12, 119, 134, 0.08); }

.drawer {
  min-height: 520px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.empty-drawer {
  height: 100%;
  min-height: 400px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--soft);
  font-weight: 420;
  line-height: 1.5;
}

.drawer h3 { font-size: 18px; font-weight: 620; letter-spacing: -0.046em; margin-bottom: 6px; }
.drawer-sub { color: var(--soft); font-size: 13px; font-weight: 420; margin-bottom: 16px; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}
.mini-box span { display: block; color: var(--soft); font-size: 11px; font-weight: 420; margin-bottom: 4px; }
.mini-box strong { font-size: 13px; font-weight: 620; }

.field-label { display: block; margin: 14px 0 8px; color: var(--navy-2); font-size: 12px; font-weight: 420; }

.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }

.payment-method {
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 11px;
  color: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 580;
  transition: 0.18s ease;
}

.payment-method.active {
  border-color: rgba(12, 119, 134, 0.46);
  background: rgba(234, 248, 255, 0.92);
  color: var(--blue-2);
  box-shadow: 0 10px 22px rgba(4, 120, 255, 0.1);
  font-weight: 600;
}

.input, .select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy-2);
  outline: none;
  font-size: 13px;
  font-weight: 540;
}

.register-btn {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #082b67 0%, #0c7786 58%, #22a9e6 100%);
  color: white;
  font-size: 13px;
  font-weight: 580;
  box-shadow: 0 14px 28px rgba(4, 120, 255, 0.24);
  transition: 0.18s ease;
}
.register-btn:hover { transform: translateY(-1px); }
.register-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Financeiro */
.finance-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.finance-card-btn {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  transition: 0.18s ease;
  font-weight: 580;
}

.finance-card-btn.active, .finance-card-btn:hover {
  border-color: rgba(4, 120, 255, 0.5);
  box-shadow: 0 14px 30px rgba(12, 119, 134, 0.08);
  transform: translateY(-1px);
}

.finance-card-btn span { display: block; color: var(--soft); font-size: 12px; font-weight: 420; margin-bottom: 8px; }
.finance-card-btn strong { font-size: 24px; font-weight: 650; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.finance-card-btn small { display: block; color: var(--soft); margin-top: 8px; font-weight: 420; }

.detail-panel {
  border: 1px solid rgba(10, 83, 166, 0.08);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  overflow: hidden;
}

.cash-detail-header {
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(10, 83, 166, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(234, 248, 255, 0.68));
}

.cash-detail-header h3 { font-size: 18px; font-weight: 620; letter-spacing: -0.046em; margin-bottom: 6px; }
.cash-detail-header p { color: var(--soft); font-size: 13px; font-weight: 420; line-height: 1.45; max-width: 760px; }

.cash-close-pill {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 119, 134, 0.08);
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(12, 119, 134, 0.14);
}

.cash-breakdown {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  border-bottom: 1px solid rgba(10, 83, 166, 0.08);
}

.cash-breakdown-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.cash-breakdown-card span { display: block; color: var(--soft); font-size: 11px; font-weight: 420; margin-bottom: 6px; }
.cash-breakdown-card strong { display: block; font-size: 15px; font-weight: 620; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

.cash-notes {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-bottom: 1px solid rgba(10, 83, 166, 0.08);
}

.cash-note {
  padding: 13px;
  border-radius: 14px;
  background: rgba(245, 251, 255, 0.72);
  border: 1px solid rgba(12, 119, 134, 0.1);
  font-size: 12px;
  line-height: 1.45;
  color: var(--soft);
  font-weight: 420;
}

.cash-note strong { display: block; color: var(--navy-2); font-weight: 620; margin-bottom: 4px; }

.detail-head, .detail-row {
  display: grid;
  grid-template-columns: 82px 1.1fr 1.1fr 0.9fr 0.9fr 110px 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
}

.detail-head {
  color: #7185b2;
  font-size: 11px;
  font-weight: 610;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  background: rgba(247, 252, 255, 0.86);
}

.detail-row {
  border-top: 1px solid rgba(10, 83, 166, 0.07);
  font-size: 13px;
  font-weight: 420;
}

.detail-row strong { font-weight: 620; font-variant-numeric: tabular-nums; text-align: right; }

/* Cirurgia */
.surgery-panel { padding: 22px; }

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

.surgery-lead { color: var(--soft); font-size: 15px; font-weight: 420; line-height: 1.45; max-width: 720px; }

.surgery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.surgery-layout.has-open-detail { grid-template-columns: minmax(0, 1fr) 390px; }

#surgeryDrawer { display: none; }

.surgery-layout.has-open-detail #surgeryDrawer {
  display: block;
  animation: drawerReveal 0.22s ease both;
}

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

.surgery-stage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(21, 104, 211, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.surgery-stage-card {
  min-height: 56px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  transition: 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--navy-2);
}

.surgery-stage-card:hover { background: rgba(12, 119, 134, 0.055); border-color: rgba(12, 119, 134, 0.12); }

.surgery-stage-card.active {
  color: white;
  background: linear-gradient(135deg, #082b67 0%, #0c7786 58%, #22a9e6 100%);
  box-shadow: 0 12px 26px rgba(12, 119, 134, 0.18);
}

.surgery-stage-card span { display: block; font-size: 12px; font-weight: 580; line-height: 1.2; letter-spacing: -0.015em; }
.surgery-stage-card strong { display: block; margin-top: 3px; color: #7185b2; font-size: 11px; font-weight: 420; white-space: nowrap; }
.surgery-stage-card.active strong { color: rgba(255, 255, 255, 0.82); }

.surgery-count {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--blue-2);
  background: rgba(12, 119, 134, 0.07);
  border: 1px solid rgba(4, 120, 255, 0.12);
  font-size: 13px;
  font-weight: 620;
  flex: none;
}

.surgery-stage-card.active .surgery-count {
  color: var(--blue-2);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.54);
}

.surgery-list {
  border: 1px solid rgba(10, 83, 166, 0.08);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  overflow: hidden;
}

.surgery-list-title {
  padding: 17px 18px 14px;
  border-bottom: 1px solid rgba(10, 83, 166, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.surgery-list-title h3 { font-size: 18px; font-weight: 620; letter-spacing: -0.046em; margin-bottom: 5px; }
.surgery-list-title p { color: var(--soft); font-size: 13px; font-weight: 420; line-height: 1.45; }

.surgery-list-head, .surgery-patient-row {
  display: grid;
  grid-template-columns: 1.18fr 1.12fr 0.92fr 0.88fr 0.78fr;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
}

.surgery-list-head {
  color: #7185b2;
  background: rgba(247, 252, 255, 0.86);
  border-bottom: 1px solid rgba(10, 83, 166, 0.07);
  font-size: 10px;
  font-weight: 610;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.surgery-patient-row {
  width: 100%;
  border-bottom: 1px solid rgba(10, 83, 166, 0.07);
  background: transparent;
  color: var(--navy);
  text-align: left;
  transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.surgery-patient-row:last-child { border-bottom: 0; }
.surgery-patient-row:hover { background: rgba(12, 119, 134, 0.04); }

.surgery-patient-row.selected {
  background: rgba(12, 119, 134, 0.055);
  box-shadow: inset 2px 0 0 rgba(12, 119, 134, 0.92);
}

.surgery-patient-main strong { display: block; font-size: 13px; font-weight: 650; margin-bottom: 4px; }

.surgery-patient-name, .surgery-drawer-name {
  display: inline-block;
  background: linear-gradient(135deg, #082b67 0%, #0c7786 56%, #22a9e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.surgery-patient-name {
  border-bottom: 1px solid rgba(12, 119, 134, 0.12);
  padding-bottom: 1px;
  cursor: pointer;
}
.surgery-patient-name:hover { border-bottom-color: rgba(4, 120, 255, 0.55); filter: saturate(1.08); }

.surgery-patient-main span, .surgery-muted { display: block; color: var(--soft); font-size: 11px; font-weight: 420; line-height: 1.35; }
.surgery-procedure { color: var(--navy-2); font-size: 12px; font-weight: 520; line-height: 1.35; }

.surgery-status {
  justify-self: start;
  color: var(--soft);
  background: rgba(12, 119, 134, 0.05);
  border: 1px solid rgba(12, 119, 134, 0.08);
  font-size: 10px;
  font-weight: 520;
  padding: 6px 9px;
}

.surgery-detail-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(10, 83, 166, 0.08); }
.surgery-detail-section:first-of-type { border-top: 0; padding-top: 4px; }

.surgery-detail-section h4 {
  margin-bottom: 10px;
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 610;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.surgery-detail-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  margin-top: 9px;
}

.surgery-detail-block span { display: block; color: var(--soft); font-size: 11px; font-weight: 610; margin-bottom: 5px; letter-spacing: 0.075em; }
.surgery-detail-block p { color: var(--navy-2); font-size: 13px; font-weight: 520; line-height: 1.5; }

.surgery-meta-pair strong { display: block; color: var(--navy-2); font-size: 12px; font-weight: 520; line-height: 1.25; margin-bottom: 3px; }
.surgery-meta-pair span, .surgery-patient-extra { display: block; color: var(--soft); font-size: 11px; font-weight: 420; line-height: 1.35; }

.surgery-date-status {
  min-width: 118px;
  color: var(--blue-2);
  background: rgba(12, 119, 134, 0.05);
  border-color: rgba(4, 120, 255, 0.15);
  font-size: 11px;
  line-height: 1.18;
  text-align: left;
  justify-content: flex-start;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-weight: 520;
}

.surgery-date-status small { display: block; color: var(--soft); font-size: 9px; font-weight: 800; }

.surgery-case-summary {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(12, 119, 134, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(125, 228, 255, 0.17), transparent 34%),
    linear-gradient(135deg, rgba(244, 251, 255, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: 0 12px 28px rgba(12, 119, 134, 0.055);
}

.surgery-case-kicker {
  display: block;
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 610;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.surgery-case-summary h4 { color: var(--navy); font-size: 17px; font-weight: 630; line-height: 1.22; letter-spacing: -0.035em; margin-bottom: 10px; }

.surgery-case-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }

.surgery-case-chip {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(12, 119, 134, 0.1);
}

.surgery-case-chip span { display: block; color: var(--soft); font-size: 9px; font-weight: 610; letter-spacing: 0.075em; text-transform: uppercase; margin-bottom: 3px; }
.surgery-case-chip strong { display: block; color: var(--navy-2); font-size: 12px; font-weight: 520; line-height: 1.2; }

.surgery-schedule-highlight {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, #082b67 0%, #0c7786 58%, #22a9e6 100%);
  box-shadow: 0 14px 28px rgba(12, 119, 134, 0.18);
}

.surgery-schedule-highlight span { display: block; margin-bottom: 5px; color: rgba(255, 255, 255, 0.78); font-size: 10px; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.surgery-schedule-highlight strong { display: block; font-size: 19px; letter-spacing: -0.035em; line-height: 1.15; }
.surgery-schedule-highlight small { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.82); font-size: 11px; font-weight: 750; line-height: 1.35; }

.surgery-next-step-card {
  margin-top: 12px;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid rgba(0, 169, 134, 0.18);
  background: rgba(0, 169, 134, 0.06);
}

.surgery-next-step-card span { display: block; color: var(--green); font-size: 10px; font-weight: 610; letter-spacing: 0.075em; text-transform: uppercase; margin-bottom: 5px; }
.surgery-next-step-card p { color: var(--navy-2); font-size: 12px; font-weight: 520; line-height: 1.42; }

.surgery-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.surgery-detail-grid .surgery-detail-block { margin-top: 0; }
.surgery-observation-block { background: rgba(245, 251, 255, 0.86); }

/* Administrativo */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  min-height: 118px;
  padding: 16px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.metric-card span { color: var(--navy-2); font-size: 12px; font-weight: 600; line-height: 1.25; }
.metric-card strong { font-size: 26px; font-weight: 640; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.metric-card small { color: var(--soft); font-size: 11px; font-weight: 600; }

.timeline, .insights {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.timeline h3, .insights h3 { padding: 16px 18px; border-bottom: 1px solid rgba(10, 83, 166, 0.08); font-size: 15px; font-weight: 620; }
.timeline-item, .insight-item { padding: 14px 18px; border-bottom: 1px solid rgba(10, 83, 166, 0.07); }
.timeline-item:last-child, .insight-item:last-child { border-bottom: 0; }
.timeline-item time { display: block; color: var(--blue-2); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.timeline-item p, .insight-item p { color: var(--soft); line-height: 1.45; font-size: 13px; font-weight: 420; }
.timeline-item strong, .insight-item strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 620; }

.knowledge-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 83, 166, 0.08);
}

.knowledge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.knowledge-head h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.knowledge-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.knowledge-stats span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--blue-2);
  background: rgba(12, 119, 134, 0.08);
  font-size: 11px;
  font-weight: 650;
}

.knowledge-search {
  min-width: min(460px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.knowledge-results {
  min-height: 70px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.knowledge-result, .knowledge-row {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.knowledge-result span {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 760;
}

.knowledge-result strong, .knowledge-row strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 4px;
}

.knowledge-result p {
  color: var(--navy-2);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 6px;
}

.knowledge-result small, .knowledge-row span, .knowledge-empty {
  color: var(--soft);
  font-size: 12px;
  font-weight: 460;
  line-height: 1.45;
}

.knowledge-workbench {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.knowledge-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 10px;
}

.knowledge-form h4, .knowledge-list h4 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.knowledge-form label {
  display: grid;
  gap: 6px;
  color: var(--navy-2);
  font-size: 11px;
  font-weight: 650;
}

.knowledge-form textarea.input {
  height: auto;
  min-height: 78px;
  padding-top: 11px;
  resize: vertical;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-2);
}

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

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

.positive { color: var(--green); }
.negative { color: var(--red); }
.balance { color: var(--blue-2); }
.warning { color: var(--amber); }

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: min(420px, calc(100vw - 40px));
  padding: 18px 20px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 58px rgba(15, 76, 151, 0.1);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  backdrop-filter: blur(18px);
  z-index: 20;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast strong { display: block; margin-bottom: 4px; color: var(--blue-2); font-weight: 620; }

.mobile-top, .mobile-nav { display: none; }

@media (max-width: 1260px) {
  .app-shell { grid-template-columns: 230px 1fr; }
  .brand-name { font-size: 22px; }
  .agenda-layout, .admin-grid, .knowledge-workbench, .knowledge-lists, .surgery-layout, .surgery-layout.has-open-detail { grid-template-columns: 1fr; }
  .doctor-row, .finance-top, .metrics-grid { grid-template-columns: 1fr; }
  .surgery-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-head, .detail-row, .patient-row, .surgery-patient-row { grid-template-columns: 1fr; }
  .surgery-list-head { display: none; }
  .detail-row strong { text-align: left; }
}

@media (max-width: 860px) {
  .app-shell { width: 100%; margin: 0; min-height: 100vh; border-radius: 0; grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 18px; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0 8px; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 0 0 12px;
  }
  .mobile-nav .nav-button {
    min-height: 44px;
    padding: 0 10px;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(12, 119, 134, 0.12);
    background: rgba(255, 255, 255, 0.62);
  }
  .mobile-nav .nav-button svg { display: none; }
  .mobile-nav .nav-button span { font-size: 11px; }
  .topbar { align-items: flex-start; }
  .top-actions { display: none; }
  .section-title { flex-direction: column; }
  .knowledge-head { flex-direction: column; }
  .knowledge-search { min-width: 0; width: 100%; grid-template-columns: 1fr; }
  .assistant-shell { min-height: auto; padding: 18px; }
  .chat-head { align-items: flex-start; flex-direction: column; }
  .payment-methods, .mini-grid { grid-template-columns: 1fr; }
  .surgery-stage-grid { grid-template-columns: 1fr; }
  .surgery-case-meta, .surgery-detail-grid { grid-template-columns: 1fr; }
  .cash-breakdown { grid-template-columns: repeat(2, 1fr); }
  .cash-notes { grid-template-columns: 1fr; }
}
