:root {
  --bg: #eef7f8;
  --panel: #ffffff;
  --panel-soft: #e9f5f4;
  --text: #102026;
  --muted: #5f7178;
  --line: #cfe2e3;
  --green: #18a66a;
  --green-dark: #087749;
  --teal: #00a6a6;
  --amber: #d99a21;
  --blue: #2478b8;
  --coral: #e25b5b;
  --violet: #6557d2;
  --cyan: #37c7d4;
  --ink: #0b1d24;
  --shadow: 0 22px 55px rgba(13, 45, 54, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(13, 57, 65, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 57, 65, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 12%, rgba(55, 199, 212, 0.12), transparent 28%),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: var(--text);
}

body.locked {
  overflow: hidden;
}

body.dark {
  --bg: #111815;
  --panel: #17211d;
  --panel-soft: #1d2d25;
  --text: #eef8f0;
  --muted: #a7b8ac;
  --line: #2d4035;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hidden {
  display: none !important;
}

.intro-page,
.login-page {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: auto;
  padding: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 16% 22%, rgba(55, 199, 212, 0.36), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(24, 166, 106, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(5, 22, 32, 0.76), rgba(8, 58, 62, 0.82)),
    url("https://images.unsplash.com/photo-1584515933487-779824d29309?auto=format&fit=crop&w=1600&q=80") center/cover;
  background-size: 42px 42px, 42px 42px, auto, auto, auto, auto;
}

.intro-nav,
.intro-hero,
.about-strip,
.entry-columns {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-nav,
.topbar,
.panel-header,
.hero-panel,
.top-actions,
.hero-stats,
.impact-grid,
.brand {
  display: flex;
  align-items: center;
}

.intro-nav {
  justify-content: space-between;
  color: #fff;
}

.intro-hero {
  min-height: 58vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
  color: #fff;
}

.hero-copy-block h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.96;
}

.hero-copy-block p {
  max-width: 700px;
  color: #dbece1;
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.075)),
    radial-gradient(circle at 70% 20%, rgba(55, 199, 212, 0.18), transparent 26%);
  background-size: 28px 28px, 28px 28px, auto, auto;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.pulse-ring,
.orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(185, 245, 245, 0.62);
}

.pulse-ring {
  inset: 88px;
  animation: pulse 3.8s ease-in-out infinite;
}

.orbit-one {
  width: 250px;
  height: 250px;
  left: 52px;
  top: 62px;
  animation: floatOne 6s ease-in-out infinite;
}

.orbit-two {
  width: 180px;
  height: 180px;
  right: 48px;
  bottom: 48px;
  animation: floatTwo 7s ease-in-out infinite;
}

.molecule-field {
  position: absolute;
  inset: 0;
}

.molecule-field span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #aaf5f4;
  box-shadow:
    0 0 0 8px rgba(170, 245, 244, 0.12),
    0 0 24px rgba(55, 199, 212, 0.45);
  animation: moleculeDrift 8s ease-in-out infinite;
}

.molecule-field span::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 1px;
  left: 10px;
  top: 6px;
  background: rgba(170, 245, 244, 0.48);
  transform: rotate(24deg);
}

.molecule-field span:nth-child(1) {
  left: 25%;
  top: 24%;
}

.molecule-field span:nth-child(2) {
  right: 28%;
  top: 34%;
  animation-delay: -2s;
}

.molecule-field span:nth-child(3) {
  left: 38%;
  bottom: 26%;
  animation-delay: -4s;
}

.molecule-field span:nth-child(4) {
  right: 18%;
  bottom: 18%;
  animation-delay: -5.5s;
}

.visual-card {
  position: absolute;
  width: 170px;
  padding: 16px;
  border-radius: 6px;
  background: rgba(246, 253, 253, 0.92);
  color: #17211b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(55, 199, 212, 0.34);
}

.visual-card span,
.metric-card span,
.hero-stats span,
.impact-grid span,
.mode-card span,
.sdg-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.visual-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
}

.card-funds {
  left: 38px;
  top: 54px;
  animation: cardLift 5s ease-in-out infinite;
}

.card-patients {
  right: 34px;
  top: 150px;
  animation: cardLift 5.8s ease-in-out infinite;
}

.card-impact {
  left: 118px;
  bottom: 54px;
  animation: cardLift 6.4s ease-in-out infinite;
}

.card-request {
  right: 48px;
  bottom: 44px;
  border-left: 5px solid var(--coral);
  animation: cardLift 5.4s ease-in-out infinite;
}

.about-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 249, 249, 0.92));
  color: #17211b;
  border: 1px solid rgba(55, 199, 212, 0.28);
}

.about-strip h3 {
  margin: 0;
  font-size: 1.6rem;
}

.about-strip p {
  margin: 0;
  color: #4f5f54;
  line-height: 1.7;
}

.entry-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 10px;
}

.entry-column,
.module-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 251, 0.98));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-column {
  min-height: 190px;
  padding: 18px;
}

.entry-column:hover,
.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(55, 199, 212, 0.62);
  box-shadow: var(--shadow);
}

.entry-column:nth-child(1),
.module-card:nth-child(1) {
  border-top: 5px solid var(--coral);
}

.entry-column:nth-child(2),
.module-card:nth-child(2) {
  border-top: 5px solid var(--green);
}

.entry-column:nth-child(3),
.module-card:nth-child(3) {
  border-top: 5px solid var(--teal);
}

.entry-column:nth-child(4),
.module-card:nth-child(4) {
  border-top: 5px solid var(--amber);
}

.entry-column:nth-child(5),
.module-card:nth-child(5) {
  border-top: 5px solid var(--violet);
}

.entry-column span,
.module-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.entry-column strong,
.module-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.2rem;
}

.entry-column p,
.module-card p,
.public-note,
.side-insight p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.login-page {
  display: grid;
  place-items: center;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  margin: 0;
  font-size: 2rem;
}

.login-card label,
.login-note {
  color: #dbece1;
}

.login-card input {
  background: rgba(255, 255, 255, 0.92);
  color: #17211b;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #08212a, #0c332f);
  background-size: 26px 26px, 26px 26px, auto;
  color: #f4fff7;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  gap: 14px;
}

.compact-brand .brand-mark {
  width: 44px;
  height: 44px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), #78e29f);
  color: #06232a;
  font-size: 30px;
  font-weight: 800;
}

.brand h1,
.topbar h2,
.hero-panel h3,
.panel h3 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-page .eyebrow,
.sidebar .eyebrow,
.sidebar .sdg-card p,
.mode-card span {
  color: #b7cdbc;
}

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

.nav-link {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: transparent;
  color: #dcefe2;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sdg-card,
.mode-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.075);
}

.sdg-card {
  margin-top: auto;
}

.sdg-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.sdg-card strong {
  display: block;
  margin: 8px 0;
  font-size: 2.4rem;
}

.mode-card strong {
  display: block;
  margin: 6px 0 12px;
}

.dashboard {
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 22px;
}

.topbar,
.panel-header,
.hero-panel {
  justify-content: space-between;
  gap: 18px;
}

.top-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.text-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}

.primary-button {
  min-height: 44px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #fff;
}

.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  background: #e8f8f8;
  color: #075f66;
}

.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.text-button {
  justify-self: start;
  padding: 0;
  color: #e5f7e9;
  background: transparent;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.icon-button {
  width: 44px;
  height: 44px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 1.1rem;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e5fbfb;
  color: #05666d;
  font-size: 0.82rem;
  font-weight: 800;
}

.page-view {
  display: none;
}

.page-view.active-page {
  display: grid;
  gap: 22px;
  animation: pageIn 0.25s ease both;
}

.hero-panel {
  padding: 28px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(10, 74, 82, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 74, 82, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(224, 251, 251, 0.94), rgba(238, 248, 255, 0.92), rgba(239, 252, 242, 0.88)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1400&q=80") center/cover;
  background-size: 30px 30px, 30px 30px, auto, auto;
  box-shadow: var(--shadow);
  border: 1px solid rgba(55, 199, 212, 0.24);
}

body.dark .hero-panel {
  background: linear-gradient(135deg, #193a2a 0%, #15211d 58%, #143331 100%);
}

.hero-panel h3 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-stats {
  gap: 12px;
}

.hero-stats div,
.metric-card,
.panel,
.impact-grid div,
.insight-stack div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 252, 0.98));
}

.hero-stats div {
  min-width: 150px;
  padding: 16px;
}

.hero-stats strong,
.metric-card strong,
.impact-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

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

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.metric-card::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 3px solid rgba(55, 199, 212, 0.42);
}

.metric-card small {
  color: var(--muted);
}

.module-card {
  min-height: 180px;
  padding: 18px;
}

.command-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 122, 74, 0.1), rgba(50, 106, 143, 0.1)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.command-strip h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.command-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.alert-pill {
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-soft);
  border-left: 5px solid var(--coral);
  animation: softGlow 2.8s ease-in-out infinite;
}

.alert-pill strong,
.alert-pill span {
  display: block;
}

.alert-pill span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 16px;
}

body.public-mode .fund-records-panel {
  grid-column: 1 / -1;
}

.panel {
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.large-panel {
  min-height: 520px;
}

.side-insight {
  align-self: start;
}

.insight-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.insight-stack div {
  padding: 14px;
}

.insight-stack span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.insight-stack strong {
  display: block;
  margin-top: 5px;
}

input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.full {
  width: 100%;
}

.patient-form,
.help-form {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.patient-form button,
.help-form button,
.wide-field {
  grid-column: 1 / -1;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.search-input {
  max-width: 260px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.9rem;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-list,
.timeline,
.request-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-item,
.timeline-item,
.request-item,
.help-result {
  padding: 12px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.help-result {
  border-left: 4px solid var(--green);
  line-height: 1.6;
}

.help-result.review {
  border-left-color: var(--amber);
}

.request-item {
  display: grid;
  gap: 8px;
  border-left: 4px solid var(--blue);
}

.request-item .primary-button {
  justify-self: start;
}

.request-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.request-item span,
.request-item small {
  color: var(--muted);
}

.mini-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.timeline-item {
  border-left: 4px solid var(--green);
}

.timeline-item strong,
.mini-item strong {
  display: block;
}

.timeline-item span,
.mini-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.compact {
  max-height: 65vh;
  overflow: auto;
}

.bar-chart {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.bar-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 12px;
}

.bar-row span,
.bar-row strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.bar-track {
  height: 18px;
  border-radius: 6px;
  background: var(--panel-soft);
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.35s ease;
}

.fund-bar {
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.usage-bar {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

.impact-grid {
  margin-top: 24px;
  gap: 12px;
}

.impact-grid div {
  flex: 1;
  padding: 16px;
}

.flow-line,
.sdg-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.flow-line span,
.sdg-list div {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--panel-soft);
  font-weight: 800;
}

.sdg-list div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sdg-list span {
  color: var(--muted);
  font-weight: 600;
}

.sdg-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.sdg-score-grid div {
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(94, 208, 140, 0.16), rgba(50, 106, 143, 0.12));
  border: 1px solid var(--line);
}

.sdg-score-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.sdg-score-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.7rem;
}

.audit-page-panel {
  max-width: 900px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 8px;
  background: #10281c;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes floatOne {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 18px);
  }
}

@keyframes floatTwo {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-18px, -14px);
  }
}

@keyframes cardLift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes moleculeDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.76;
  }
  50% {
    transform: translate(16px, -18px) scale(1.18);
    opacity: 1;
  }
}

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

@keyframes softGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(215, 90, 74, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(215, 90, 74, 0.16);
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .intro-hero,
  .about-strip,
  .page-split {
    grid-template-columns: 1fr;
  }

  .entry-columns,
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid,
  .command-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .intro-page,
  .login-page,
  .dashboard,
  .sidebar {
    padding: 18px;
  }

  .intro-nav,
  .topbar,
  .hero-panel,
  .panel-header,
  .hero-stats,
  .impact-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .entry-columns,
  .metrics-grid,
  .module-grid,
  .command-strip,
  .patient-form,
  .help-form {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .visual-card {
    width: 150px;
  }

  .card-patients {
    right: 18px;
  }

  .search-input {
    max-width: none;
  }
}
