@font-face {
  font-family: "FerfiPlusz Geist";
  src: url("./fonts/geist-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "FerfiPlusz Geist";
  src: url("./fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-ui: "FerfiPlusz Geist", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --ink: #172d2a;
  --ink-soft: #4c625f;
  --muted: #728481;
  --line: #dce6e3;
  --surface: #ffffff;
  --canvas: #f4f7f5;
  --nav: #102b28;
  --nav-soft: #1b3b37;
  --teal: #0d766e;
  --teal-dark: #095e58;
  --teal-soft: #e2f2ef;
  --mint: #bfe6dc;
  --amber: #a85d12;
  --amber-soft: #fff0d9;
  --red: #a63a44;
  --red-soft: #fbe8e9;
  --blue: #315f8a;
  --blue-soft: #e8f1f8;
  --shadow: 0 16px 45px rgba(22, 50, 45, 0.08);
  --shadow-sm: 0 5px 20px rgba(22, 50, 45, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  font-feature-settings: "kern" 1, "liga" 1;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--mint);
  color: var(--nav);
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 800;
}

.brand-name {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 17px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.nav-item:focus-visible,
.tab:focus-visible,
.patient-row:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(13, 118, 110, 0.24);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 7px 18px rgba(13, 118, 110, 0.18);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: #b8cac6;
  background: #fafdFC;
}

.btn-quiet {
  padding: 0 10px;
  color: var(--ink-soft);
}

.btn-danger {
  border-color: #ebc6c9;
  background: var(--red-soft);
  color: var(--red);
}

.btn-wide {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.badge-amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge-red {
  background: var(--red-soft);
  color: var(--red);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge-green {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(380px, 0.95fr) minmax(520px, 1.05fr);
}

.login-story {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 64px;
  background:
    radial-gradient(circle at 75% 24%, rgba(191, 230, 220, 0.2), transparent 23%),
    radial-gradient(circle at 25% 75%, rgba(69, 145, 130, 0.2), transparent 24%),
    var(--nav);
  color: white;
}

.login-story::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(255,255,255,.025),
    0 0 0 110px rgba(255,255,255,.018);
  content: "";
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: 550px;
}

.login-copy h1 {
  margin: 0 0 22px;
  font-family: var(--font-ui);
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.login-copy > p {
  max-width: 480px;
  margin: 0 0 38px;
  color: #c8dad7;
  font-size: 17px;
  line-height: 1.7;
}

.security-points {
  display: grid;
  max-width: 450px;
  gap: 16px;
}

.security-point {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #e7f1ef;
  font-size: 14px;
}

.security-point .icon-wrap {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(191, 230, 220, .25);
  border-radius: 50%;
  background: rgba(191, 230, 220, .08);
  color: var(--mint);
}

.security-point .icon {
  width: 17px;
  height: 17px;
}

.login-foot {
  position: relative;
  z-index: 1;
  color: #9cb6b1;
  font-size: 12px;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 50px;
  background:
    linear-gradient(rgba(244, 247, 245, .88), rgba(244, 247, 245, .88)),
    radial-gradient(circle at 10% 10%, var(--mint), transparent 26%);
}

.login-card {
  width: min(440px, 100%);
}

.login-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-ui);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.login-intro {
  margin: 0 0 32px;
  color: var(--muted);
  line-height: 1.55;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.form-label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.form-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.input-wrap {
  position: relative;
}

.input-wrap .icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #81918e;
  transform: translateY(-50%);
}

.input-wrap input {
  width: 100%;
  height: 50px;
  border: 1px solid #cad7d4;
  border-radius: 10px;
  padding: 0 47px;
  background: white;
  color: var(--ink);
  transition: border 150ms ease, box-shadow 150ms ease;
}

.input-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 118, 110, .1);
  outline: none;
}

.input-action {
  position: absolute;
  top: 50%;
  right: 9px;
  border: 0;
  padding: 6px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-50%);
}

.text-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--teal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.password-meter {
  display: grid;
  margin: 10px 0 6px;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.password-meter span {
  height: 3px;
  border-radius: 5px;
  background: #dbe4e2;
  transition: 150ms ease;
}

.password-meter[data-strength="1"] span:nth-child(-n+1),
.password-meter[data-strength="2"] span:nth-child(-n+2) {
  background: var(--amber);
}

.password-meter[data-strength="3"] span:nth-child(-n+3),
.password-meter[data-strength="4"] span:nth-child(-n+4) {
  background: var(--teal);
}

.login-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.login-meta .icon {
  width: 15px;
  height: 15px;
}

.demo-note {
  margin: 24px 0 0;
  border: 1px solid #cddfdb;
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.55);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.demo-note strong {
  color: var(--ink);
}

.mfa-code {
  display: grid;
  margin: 8px 0 25px;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.mfa-code input {
  width: 100%;
  height: 58px;
  border: 1px solid #c9d7d4;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.mfa-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 18px;
  background: var(--teal-soft);
  color: var(--teal);
}

.mfa-icon .icon {
  width: 29px;
  height: 29px;
}

.portal {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 248px minmax(0, 1fr);
  background: var(--canvas);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 25px 18px 20px;
  background: var(--nav);
  color: white;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 27px;
}

.side-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px 10px 10px 3px;
  font-size: 18px;
}

.side-brand .brand-name {
  font-size: 21px;
}

.nav-label {
  margin: 5px 12px 8px;
  color: #77928d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: transparent;
  color: #a9bfbb;
  cursor: pointer;
  text-align: left;
  transition: 150ms ease;
}

.nav-item:hover {
  background: rgba(255,255,255,.05);
  color: white;
}

.nav-item.active {
  background: var(--nav-soft);
  color: white;
}

.nav-item.active .icon {
  color: var(--mint);
}

.nav-count {
  min-width: 22px;
  margin-left: auto;
  border-radius: 99px;
  padding: 3px 7px;
  background: var(--mint);
  color: var(--nav);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.sidebar-spacer {
  flex: 1;
}

.profile-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 18px 8px 0;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #d6ebe5;
  color: var(--nav);
  font-size: 12px;
  font-weight: 800;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-copy strong,
.profile-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 13px;
}

.profile-copy span {
  margin-top: 2px;
  color: #89a29d;
  font-size: 11px;
}

.profile-mini .btn {
  min-height: 32px;
  padding: 5px;
  color: #9cb3ae;
}

.portal-main {
  min-width: 0;
}

.topbar {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(10px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
}

.secure-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 12px;
}

.secure-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35a98c;
  box-shadow: 0 0 0 4px rgba(53, 169, 140, .11);
  content: "";
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink-soft);
  cursor: pointer;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--red);
}

.page {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 38px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 29px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-family: var(--font-ui);
  font-size: 31px;
  letter-spacing: -0.04em;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: white;
  color: var(--ink-soft);
  font-size: 13px;
}

.date-chip .icon {
  width: 16px;
  height: 16px;
}

.summary-grid {
  display: grid;
  margin-bottom: 25px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: white;
  box-shadow: 0 3px 13px rgba(17, 48, 43, .03);
}

.summary-card::after {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--card-tint, var(--teal-soft));
  content: "";
}

.summary-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 10px;
  background: var(--card-tint, var(--teal-soft));
  color: var(--card-color, var(--teal));
}

.summary-icon .icon {
  width: 18px;
  height: 18px;
}

.summary-value {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-ui);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 17px 20px;
}

.panel-head h2 {
  margin: 0 0 3px;
  font-family: var(--font-ui);
  font-size: 18px;
  letter-spacing: -.025em;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-box {
  position: relative;
}

.search-box .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  width: 210px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px 0 36px;
  background: #fbfdfc;
}

.filter-select {
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 30px 0 11px;
  background: #fbfdfc;
  color: var(--ink-soft);
  font-size: 13px;
}

.patient-table-head,
.patient-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) minmax(170px, 1fr) minmax(125px, .75fr) minmax(130px, .8fr) 38px;
  align-items: center;
  gap: 16px;
}

.patient-table-head {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  background: #f8faf9;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.patient-row {
  width: 100%;
  min-height: 78px;
  border: 0;
  border-bottom: 1px solid #edf2f0;
  padding: 12px 20px;
  background: white;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease;
}

.patient-row:last-child {
  border-bottom: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.patient-row:hover {
  background: #f8fbfa;
}

.patient-cell {
  min-width: 0;
}

.patient-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-identity .avatar {
  width: 39px;
  height: 39px;
  background: #edf3f1;
  color: var(--teal-dark);
}

.patient-name {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-id,
.cell-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.request-name {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 600;
}

.submitted {
  color: var(--ink-soft);
  font-size: 12px;
}

.open-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--teal);
}

.patient-row:hover .open-arrow {
  background: var(--teal-soft);
}

.empty-state {
  display: none;
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}

.mobile-menu {
  display: none;
}

.review-page {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px 38px 50px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  margin: 0 0 20px;
  padding: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.back-button:hover {
  color: var(--teal);
}

.back-button .icon {
  width: 16px;
  height: 16px;
}

.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 15px;
}

.review-person .avatar {
  width: 52px;
  height: 52px;
  background: #dfeeea;
  font-size: 15px;
}

.review-person h1 {
  margin: 0 0 5px;
  font-family: var(--font-ui);
  font-size: 26px;
  letter-spacing: -.035em;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a7b5b2;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tabs-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.tab {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0 17px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.tab.active {
  color: var(--teal);
}

.tab.active::after {
  background: var(--teal);
}

.tab .icon {
  width: 17px;
  height: 17px;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr);
  align-items: start;
  gap: 20px;
}

.stack {
  display: grid;
  gap: 18px;
}

.attention-card {
  display: flex;
  gap: 14px;
  border: 1px solid #ecd0b3;
  border-radius: 14px;
  padding: 17px 19px;
  background: #fff9f1;
}

.attention-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber);
}

.attention-icon .icon {
  width: 18px;
  height: 18px;
}

.attention-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.attention-card p {
  margin: 0;
  color: #785538;
  font-size: 12px;
  line-height: 1.55;
}

.section-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 4px 16px rgba(22,50,45,.035);
}

.section-head {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 15px 19px;
}

.section-head h2,
.section-head h3 {
  margin: 0 0 3px;
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: -.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.question-list {
  padding: 2px 19px;
}

.question-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(140px, .42fr);
  gap: 12px;
  border-bottom: 1px solid #edf2f0;
  padding: 17px 0;
}

.question-item:last-child {
  border-bottom: 0;
}

.question-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #eff4f2;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.question-copy strong {
  display: block;
  margin: 2px 0 5px;
  font-size: 13px;
  line-height: 1.45;
}

.question-copy span {
  color: var(--muted);
  font-size: 11px;
}

.answer {
  align-self: center;
  justify-self: end;
  border-radius: 9px;
  padding: 9px 11px;
  background: #f3f7f5;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.answer.flagged {
  background: var(--amber-soft);
  color: #8c5116;
}

.summary-list {
  display: grid;
  padding: 8px 19px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #edf2f0;
  padding: 12px 0;
  font-size: 12px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  text-align: right;
}

.eeszt-card {
  overflow: hidden;
}

.eeszt-banner {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 95% 0, rgba(191,230,220,.24), transparent 38%),
    var(--nav);
  color: white;
}

.eeszt-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: .06em;
}

.eeszt-logo .icon {
  width: 22px;
  height: 22px;
  color: var(--mint);
}

.eeszt-banner h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.eeszt-banner p {
  margin: 0;
  color: #b6cbc7;
  font-size: 12px;
  line-height: 1.55;
}

.eeszt-body {
  padding: 17px 19px 19px;
}

.connection-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.connection-state .state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aab8b5;
}

.connection-state.connected {
  color: var(--teal);
}

.connection-state.connected .state-dot {
  background: #32a184;
  box-shadow: 0 0 0 4px rgba(50,161,132,.1);
}

.privacy-note {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.privacy-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.note-box {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfdfc;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 19px 18px;
}

.activity {
  padding: 14px 19px 19px;
}

.activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 10px;
  padding-bottom: 15px;
}

.activity-item:last-child {
  padding-bottom: 0;
}

.activity-item:not(:last-child)::after {
  position: absolute;
  top: 21px;
  bottom: 0;
  left: 10px;
  width: 1px;
  background: var(--line);
  content: "";
}

.activity-marker {
  z-index: 1;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid #cddbd8;
  border-radius: 50%;
  background: white;
  color: var(--teal);
}

.activity-marker .icon {
  width: 11px;
  height: 11px;
}

.activity-copy strong {
  display: block;
  margin: 1px 0 2px;
  font-size: 11px;
}

.activity-copy span {
  color: var(--muted);
  font-size: 10px;
}

.health-intro {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfe0dc;
  border-radius: var(--radius);
  padding: 27px;
  background:
    radial-gradient(circle at 90% 15%, rgba(191,230,220,.55), transparent 25%),
    linear-gradient(135deg, #eef7f4, #f8fbfa);
}

.health-intro h2 {
  max-width: 620px;
  margin: 0 0 9px;
  font-family: var(--font-ui);
  font-size: 24px;
  letter-spacing: -.04em;
}

.health-intro p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.wip-tag {
  display: inline-flex;
  margin-bottom: 15px;
  border-radius: 99px;
  padding: 6px 10px;
  background: var(--nav);
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.metrics-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px;
  background: white;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}

.metric-top span:first-child {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.metric-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
  height: 62px;
}

.metric-placeholder span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(#d9e8e4, #edf4f2);
}

.metric-placeholder span:nth-child(1) { height: 45%; }
.metric-placeholder span:nth-child(2) { height: 66%; }
.metric-placeholder span:nth-child(3) { height: 55%; }
.metric-placeholder span:nth-child(4) { height: 82%; }
.metric-placeholder span:nth-child(5) { height: 73%; }
.metric-placeholder span:nth-child(6) { height: 100%; }

.health-plan {
  margin-top: 18px;
  padding: 22px;
}

.health-plan h3 {
  margin: 0 0 15px;
  font-family: var(--font-ui);
  font-size: 16px;
}

.plan-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-item {
  display: flex;
  gap: 11px;
  border: 1px solid #e3ebe9;
  border-radius: 11px;
  padding: 13px;
  background: #fafcfc;
}

.plan-item .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--teal);
}

.plan-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.plan-item span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 28, 25, .6);
  backdrop-filter: blur(4px);
  animation: fadeIn 150ms ease;
}

.modal {
  width: min(500px, 100%);
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 30px 90px rgba(7, 24, 21, .3);
  animation: modalIn 180ms ease;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 21px 23px;
}

.modal-head h2 {
  margin: 0 0 5px;
  font-family: var(--font-ui);
  font-size: 20px;
  letter-spacing: -.03em;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.close-modal {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f1f5f4;
  cursor: pointer;
  font-size: 18px;
}

.modal-body {
  padding: 22px 23px;
}

.verify-box {
  display: grid;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfa;
}

.verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  font-size: 12px;
}

.verify-row:last-child {
  border-bottom: 0;
}

.verify-row span {
  color: var(--muted);
}

.verify-row strong {
  text-align: right;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.consent-check input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--teal);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 16px 23px;
  background: #fafcfc;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: 380px;
  border-radius: 12px;
  padding: 13px 17px;
  background: var(--nav);
  color: white;
  box-shadow: 0 15px 45px rgba(7,24,21,.24);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
}

@media (max-width: 1050px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-grid > .stack:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-grid > .stack:last-child .eeszt-card {
    grid-row: span 2;
  }

  .patient-table-head,
  .patient-row {
    grid-template-columns: minmax(190px, 1.3fr) minmax(150px, 1fr) 130px 38px;
  }

  .patient-table-head > *:nth-child(3),
  .patient-row > *:nth-child(3) {
    display: none;
  }
}

@media (max-width: 850px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 390px;
    padding: 36px;
  }

  .login-copy h1 {
    max-width: 600px;
    font-size: 43px;
  }

  .login-copy > p {
    margin-bottom: 20px;
  }

  .security-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .security-point {
    align-items: flex-start;
    font-size: 12px;
  }

  .login-foot {
    display: none;
  }

  .login-panel {
    min-height: auto;
    padding: 55px 30px;
  }

  .portal {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 30;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .portal.menu-open .sidebar {
    transform: translateX(0);
  }

  .portal.menu-open::after {
    position: fixed;
    z-index: 20;
    inset: 0;
    background: rgba(10,28,25,.45);
    content: "";
  }

  .mobile-menu {
    display: grid;
  }

  .topbar {
    padding: 0 20px;
  }

  .page,
  .review-page {
    padding-right: 20px;
    padding-left: 20px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .login-story {
    min-height: 330px;
    padding: 28px 24px;
  }

  .login-copy h1 {
    font-size: 35px;
  }

  .login-copy > p {
    font-size: 14px;
  }

  .security-points {
    display: none;
  }

  .login-panel {
    padding: 42px 22px;
  }

  .page-head,
  .review-header {
    flex-direction: column;
  }

  .review-actions {
    width: 100%;
  }

  .review-actions .btn {
    flex: 1;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-card {
    padding: 16px;
  }

  .summary-icon {
    margin-bottom: 13px;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filters {
    width: 100%;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .patient-table-head {
    display: none;
  }

  .patient-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 16px;
  }

  .patient-row > *:nth-child(2),
  .patient-row > *:nth-child(3),
  .patient-row > *:nth-child(4) {
    display: none;
  }

  .review-grid > .stack:last-child {
    grid-template-columns: 1fr;
  }

  .question-item {
    grid-template-columns: 28px 1fr;
  }

  .answer {
    grid-column: 2;
    justify-self: start;
/* Unified, readable interface typography */
.login-intro,
.login-foot,
.demo-note,
.patient-page-head p,
.hero-copy p,
.patient-card-head p,
.checkin-copy p,
.support-card p,
.medication-meta,
.schedule-row,
.profile-copy span {
  font-size: .8125rem;
  line-height: 1.55;
}
.btn,
.nav-item,
.program-chip,
.form-label,
input,
select,
textarea {
  font-size: .875rem;
}
.eyebrow,
.hero-label,
.condition-badge {
  font-size: .75rem;
  letter-spacing: .08em;
}
.patient-card-head h3 {
  font-size: 1rem;
}
    text-align: left;
  }

  .plan-items {
    grid-template-columns: 1fr;
  }

  .topbar-title > span:not(.secure-dot) {
    display: none;
  }

  .tabs-bar {
    overflow-x: auto;
  }

  .tab {
    padding: 0 13px;
    white-space: nowrap;
  }
}
