:root {
  color-scheme: light;
  --page: #f6f7f8;
  --surface: #ffffff;
  --ink: #072635;
  --muted: #707070;
  --line: #ededed;
  --active: #01f0d0;
  --active-soft: #d8fcf7;
  --chart-bg: #f4f0fe;
  --respiratory-bg: #e0f3fa;
  --temperature-bg: #ffe6e9;
  --heart-bg: #ffe6f1;
  --radius-panel: 16px;
  --font: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  width: 1600px;
  min-width: 1600px;
  min-height: 1195px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.35;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.app-shell {
  width: 1600px;
  min-height: 1195px;
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: grid;
  grid-template-columns: 232px 1fr 320px;
  align-items: center;
  height: 72px;
  padding: 0 32px;
  background: var(--surface);
  border-radius: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 212px;
}

.brand img {
  display: block;
  width: 210px;
  height: 48px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0;
  color: var(--ink);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.nav-link.is-active {
  min-width: 148px;
  justify-content: center;
  padding: 0 22px;
  background: var(--active);
  font-size: 18px;
  font-weight: 700;
}

.doctor-card {
  display: grid;
  grid-template-columns: 44px minmax(140px, 1fr) 20px 5px;
  align-items: center;
  gap: 10px;
  justify-self: end;
  min-width: 306px;
}

.doctor-card > img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.doctor-card strong,
.doctor-card span {
  display: block;
  white-space: nowrap;
}

.doctor-card strong {
  font-size: 14px;
  font-weight: 700;
}

.doctor-card span {
  color: var(--muted);
  font-size: 14px;
}

.icon-button,
.ghost-icon {
  display: grid;
  place-items: center;
  background: transparent;
}

.icon-button img {
  width: 20px;
  height: 20px;
}

.doctor-card .icon-button:last-child img {
  width: 5px;
  height: 20px;
}

.dashboard {
  display: grid;
  grid-template-columns: 367px 766px 367px;
  gap: 32px;
  margin-top: 32px;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius-panel);
}

.patients-panel {
  height: 1054px;
  min-height: 1054px;
  padding: 20px 0;
  overflow: hidden;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 33px;
}

h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
}

.ghost-icon img {
  width: 18px;
  height: 18px;
}

.patient-list {
  height: calc(100% - 80px);
  margin-top: 28px;
  overflow-y: auto;
  scrollbar-color: var(--ink) transparent;
  scrollbar-width: thin;
}

.patient-list::-webkit-scrollbar {
  width: 6px;
}

.patient-list::-webkit-scrollbar-thumb {
  background: var(--ink);
  border-radius: 6px;
}

.patient-row {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 80px;
  padding: 0 20px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.patient-row.is-selected {
  height: 98px;
  background: var(--active-soft);
}

.patient-row > img:first-child {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.patient-row strong,
.patient-row small {
  display: block;
}

.patient-row strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 19px;
}

.patient-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
}

.row-more {
  width: 18px;
  height: 4px;
}

.main-column {
  display: grid;
  gap: 32px;
}

.diagnosis-panel {
  height: 673px;
  padding: 20px;
}

.bp-card {
  display: grid;
  grid-template-columns: 520px 164px;
  grid-template-rows: 40px 224px;
  column-gap: 24px;
  width: 726px;
  height: 298px;
  margin-top: 40px;
  padding: 16px 18px;
  background: var(--chart-bg);
  border-radius: 12px;
}

.bp-chart-header {
  display: flex;
  grid-column: 1;
  align-items: start;
  justify-content: space-between;
}

.range-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 24px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
}

.range-button img {
  width: 11px;
  height: 6px;
}

.bp-chart-wrap {
  grid-column: 1;
  grid-row: 2;
  height: 224px;
}

.bp-summary {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding-top: 1px;
}

.bp-reading {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 8px;
  align-items: center;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.legend-dot.systolic {
  background: #e66fd2;
}

.legend-dot.diastolic {
  background: #8c6fe6;
}

.bp-reading strong {
  font-size: 14px;
  font-weight: 800;
}

.bp-reading b {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 30px;
  font-weight: 800;
  line-height: 41px;
}

.bp-reading small {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.bp-reading small img {
  width: 10px;
  height: 5px;
}

.bp-divider {
  height: 1px;
  margin: 18px 0;
  background: #cbc8d4;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-columns: repeat(3, 228px);
  gap: 21px;
  margin-top: 20px;
}

.vital-card {
  width: 228px;
  height: 242px;
  padding: 20px;
  border-radius: 12px;
}

.vital-card.respiratory {
  background: var(--respiratory-bg);
}

.vital-card.temperature {
  background: var(--temperature-bg);
}

.vital-card.heart {
  background: var(--heart-bg);
}

.vital-icon {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  background: #ffffff;
  border-radius: 50%;
}

.vital-icon img {
  width: 96px;
  height: 96px;
}

.vital-card p {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.vital-card strong {
  display: block;
  margin-top: 1px;
  font-size: 30px;
  font-weight: 800;
  line-height: 41px;
}

.vital-card small {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
}

.diagnostic-list-panel {
  height: 349px;
  padding: 20px;
}

.diagnostic-table-wrap {
  max-height: 220px;
  margin-top: 16px;
  overflow: auto;
}

.diagnostic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.diagnostic-table thead {
  background: var(--page);
}

.diagnostic-table th {
  padding: 15px 16px;
  font-weight: 800;
  text-align: left;
}

.diagnostic-table th:first-child {
  border-radius: 24px 0 0 24px;
}

.diagnostic-table th:last-child {
  border-radius: 0 24px 24px 0;
}

.diagnostic-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.side-column {
  display: grid;
  gap: 32px;
  align-content: start;
  margin-top: -14px;
}

.profile-panel {
  height: 740px;
  padding: 42px 20px 24px;
  text-align: center;
}

.profile-photo {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
}

.profile-panel h2 {
  margin-top: 38px;
  font-size: 24px;
  line-height: 33px;
}

.profile-details {
  display: grid;
  gap: 24px;
  margin: 32px 0 0;
  text-align: left;
}

.profile-details div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 16px;
  align-items: center;
}

.profile-details img {
  grid-row: span 2;
  width: 42px;
  height: 42px;
}

.profile-details dt {
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
}

.profile-details dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 19px;
}

.show-info-button {
  width: 220px;
  height: 41px;
  margin-top: 36px;
  color: var(--ink);
  background: var(--active);
  border-radius: 41px;
  font-size: 14px;
  font-weight: 800;
}

.labs-panel {
  height: 296px;
  padding: 20px;
}

.lab-list {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.lab-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 13px;
}

.lab-list li:nth-child(2n + 1) {
  background: #f6f7f8;
}

.lab-list li > img {
  width: 20px;
  height: 20px;
}

.source-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
