@font-face {
  font-family: "Rubik";
  src: url("./assets/fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Rubik";
  src: url("./assets/fonts/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
}

@font-face {
  font-family: "Unageo";
  src: url("./assets/fonts/UnageoBold-Regular.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --brand-cyan: #44bed8;
  --brand-cyan-2: #44bcd6;
  --brand-purple: #952581;
  --brand-ink: #2d2d2d;
  --surface: #ffffff;
  --surface-soft: #f5fbfd;
  --line: #dbeaf0;
  --muted: #6a7a80;
  --ok: #29a36a;
  --ok-soft: #dff5e8;
  --warn: #d88b20;
  --warn-soft: #fff0d6;
  --danger: #cf3e55;
  --danger-soft: #fde2e7;
  --shadow: 0 18px 60px rgba(28, 64, 76, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--brand-ink);
  background:
    linear-gradient(135deg, rgba(68, 190, 216, 0.1), rgba(149, 37, 129, 0.04)),
    #eef8fb;
  font-family: "Rubik", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 0.88fr) 1.12fr;
  background: #f7fcfd;
}

.login-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  color: #ffffff;
  background:
    linear-gradient(142deg, rgba(68, 190, 216, 0.96), rgba(48, 153, 208, 0.94)),
    var(--brand-cyan);
}

.login-brand::before,
.login-brand::after {
  position: absolute;
  content: "";
  transform: skewX(-28deg);
  background: rgba(255, 255, 255, 0.18);
}

.login-brand::before {
  inset: -12% auto auto 20%;
  width: 36%;
  height: 125%;
}

.login-brand::after {
  right: -18%;
  bottom: -12%;
  width: 48%;
  height: 96%;
  background: rgba(149, 37, 129, 0.18);
}

.brand-card {
  position: relative;
  z-index: 1;
}

.brand-logo-light {
  width: min(330px, 82%);
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-title {
  max-width: 460px;
  margin: 76px 0 0;
  font-family: "Unageo", "Rubik", Arial, sans-serif;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.brand-subtitle {
  max-width: 440px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.55;
}

.brand-note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  max-width: 430px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.brand-note img {
  width: 36px;
  height: 36px;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 34px;
}

.login-box {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.register-box {
  width: min(450px, 100%);
}

.login-mark {
  width: 54px;
  height: 62px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-purple);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.login-box h1,
.content-header h1 {
  margin: 0;
  font-family: "Unageo", "Rubik", Arial, sans-serif;
  letter-spacing: 0;
}

.login-box h1 {
  font-size: 34px;
  line-height: 1.08;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #38555e;
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c8dfe7;
  border-radius: 8px;
  color: var(--brand-ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input,
.field select {
  height: 46px;
  padding: 0 14px;
}

.field textarea {
  min-height: 104px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(68, 190, 216, 0.18);
}

.primary-button,
.secondary-button,
.ghost-button,
.chip-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 500;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--brand-purple);
  box-shadow: 0 10px 22px rgba(149, 37, 129, 0.18);
}

.secondary-button {
  color: #135665;
  background: rgba(68, 190, 216, 0.12);
  border-color: rgba(68, 190, 216, 0.35);
}

.ghost-button {
  color: #36555e;
  background: #ffffff;
  border-color: var(--line);
}

.chip-button {
  min-height: 34px;
  color: #36555e;
  background: #ffffff;
  border-color: var(--line);
}

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

.button-icon {
  width: 18px;
  height: 18px;
}

.form-error {
  min-height: 19px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.auth-alt {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e7f0f3;
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.full-button {
  width: 100%;
}

.profile-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(68, 190, 216, 0.13), rgba(149, 37, 129, 0.06)),
    #f7fcfd;
}

.profile-shell {
  display: grid;
  width: min(1120px, 100%);
  grid-template-columns: 0.82fr 1.18fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.profile-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 640px;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(68, 190, 216, 0.96), rgba(149, 37, 129, 0.88)),
    var(--brand-cyan);
}

.profile-intro::before {
  position: absolute;
  inset: -8% auto auto 42%;
  width: 38%;
  height: 122%;
  transform: skewX(-28deg);
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.profile-intro > * {
  position: relative;
  z-index: 1;
}

.profile-logo {
  width: min(260px, 82%);
  filter: brightness(0) invert(1);
}

.profile-intro .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.profile-intro h1,
.profile-card h1 {
  margin: 0;
  font-family: "Unageo", "Rubik", Arial, sans-serif;
  letter-spacing: 0;
}

.profile-intro h1 {
  max-width: 420px;
  font-size: 48px;
  line-height: 1;
}

.profile-intro p:not(.eyebrow) {
  max-width: 390px;
  margin: 18px 0 auto;
  font-size: 16px;
  line-height: 1.55;
}

.profile-person {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.15);
}

.profile-person span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-transform: uppercase;
}

.profile-person strong {
  font-size: 18px;
  line-height: 1.25;
}

.profile-person em {
  width: fit-content;
  border-radius: 8px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(45, 45, 45, 0.22);
  font-size: 12px;
  font-style: normal;
}

.profile-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 32px;
}

.profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-card h1 {
  font-size: 34px;
  line-height: 1.08;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.readonly-input {
  color: var(--muted);
  background: #f4fafc;
}

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

.profile-actions .primary-button {
  min-width: 220px;
}

.patient-note {
  margin: -4px 0 18px;
  border: 1px solid #dcebf0;
  border-radius: 8px;
  padding: 12px;
  color: #38555e;
  background: var(--surface-soft);
  font-size: 13px;
  line-height: 1.45;
}

.empty-dashboard {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed #b9dbe5;
  border-radius: 8px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.empty-dashboard img {
  width: 46px;
  height: 46px;
  opacity: 0.8;
}

.empty-dashboard h2 {
  margin: 0;
  font-size: 26px;
}

.empty-dashboard p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dynamics-view {
  display: grid;
  gap: 18px;
}

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

.dynamics-main {
  display: grid;
  gap: 14px;
}

.dynamics-overview,
.dynamic-card,
.dynamics-side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(20, 68, 82, 0.08);
}

.dynamics-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
}

.dynamics-overview h2,
.dynamics-side-panel h2 {
  margin: 0;
  font-size: 22px;
}

.dynamics-overview p:not(.eyebrow) {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.dynamics-kpis {
  display: grid;
  min-width: 220px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dynamics-kpis div,
.dynamic-metrics div {
  border-left: 3px solid rgba(68, 190, 216, 0.52);
  padding-left: 12px;
}

.dynamics-kpis span,
.dynamic-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.dynamics-kpis strong,
.dynamic-metrics strong {
  display: block;
  margin-top: 6px;
  font-family: "Unageo", "Rubik", Arial, sans-serif;
  font-size: 26px;
  letter-spacing: 0;
}

.dynamic-card {
  overflow: hidden;
}

.dynamic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(68, 190, 216, 0.1), rgba(149, 37, 129, 0.04)),
    #ffffff;
}

.trend-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.trend-badge.good,
.dynamic-metrics strong.good {
  color: #176c46;
}

.trend-badge.good {
  background: var(--ok-soft);
}

.trend-badge.bad,
.dynamic-metrics strong.bad {
  color: #9b2538;
}

.trend-badge.bad {
  background: var(--danger-soft);
}

.trend-badge.neutral,
.dynamic-metrics strong.neutral {
  color: #5c6c72;
}

.trend-badge.neutral {
  background: #eef4f6;
}

.dynamic-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 16px;
}

.dynamic-chart-wrap {
  min-width: 0;
  height: 330px;
}

.dynamic-details {
  display: grid;
  align-content: start;
  gap: 14px;
}

.dynamic-metrics {
  display: grid;
  gap: 12px;
}

.recent-points {
  display: grid;
  gap: 8px;
}

.recent-points h3 {
  margin: 0 0 2px;
  font-size: 16px;
}

.recent-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #e7f0f3;
  font-size: 13px;
}

.recent-row span {
  color: var(--muted);
}

.recent-row strong {
  text-align: right;
}

.recent-row em {
  grid-column: 1 / -1;
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.recent-row em.ok {
  color: #176c46;
}

.recent-row em.high,
.recent-row em.low {
  color: #9b2538;
}

.empty-mini {
  border: 1px dashed #c6dce4;
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.dynamics-side-panel {
  position: sticky;
  top: 24px;
  padding: 18px;
}

.dynamics-help {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  border-top: 1px solid #e7f0f3;
  padding-top: 14px;
}

.dynamics-help strong {
  font-size: 15px;
}

.dynamics-help span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 282px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(45, 45, 45, 0.96), rgba(31, 45, 50, 0.98)),
    var(--brand-ink);
}

.sidebar-logo {
  width: 198px;
  filter: brightness(0) invert(1);
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
}

.nav-item.active {
  color: #ffffff;
  background: rgba(68, 190, 216, 0.18);
  border-color: rgba(68, 190, 216, 0.34);
}

.nav-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 28px;
}

.user-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.user-card span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.user-card strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}

.user-card em {
  display: inline-flex;
  margin-top: 9px;
  border-radius: 8px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(68, 190, 216, 0.18);
  font-size: 12px;
  font-style: normal;
}

.content {
  min-width: 0;
  padding: 26px 30px 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.content-header {
  min-width: 0;
}

.content-header h1 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.05;
}

.content-header p {
  margin: 9px 0 0;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.patients-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.patient-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.patient-tab.active {
  border-color: var(--brand-cyan);
  box-shadow: 0 10px 30px rgba(68, 190, 216, 0.16);
}

.patient-tab strong {
  display: block;
  font-size: 16px;
}

.patient-tab span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

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

.summary-card strong {
  display: block;
  margin-top: 9px;
  font-family: "Unageo", "Rubik", Arial, sans-serif;
  font-size: 34px;
  letter-spacing: 0;
}

.summary-card.accent-cyan {
  border-color: rgba(68, 190, 216, 0.45);
  background: rgba(68, 190, 216, 0.09);
}

.summary-card.accent-purple {
  border-color: rgba(149, 37, 129, 0.28);
  background: rgba(149, 37, 129, 0.06);
}

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

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

.marker-card,
.insights-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(20, 68, 82, 0.08);
}

.marker-card {
  overflow: hidden;
}

.marker-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 170px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(68, 190, 216, 0.09), rgba(149, 37, 129, 0.04)),
    #ffffff;
}

.marker-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.marker-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(68, 190, 216, 0.13);
}

.marker-icon img {
  width: 23px;
  height: 23px;
}

.marker-title h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
}

.marker-title p,
.metric-small span,
.last-date {
  color: var(--muted);
  font-size: 13px;
}

.marker-title p {
  margin: 4px 0 0;
}

.metric-small strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
}

.status-pill.ok {
  color: #176c46;
  background: var(--ok-soft);
}

.status-pill.high,
.status-pill.low {
  color: #9b2538;
  background: var(--danger-soft);
}

.status-pill.empty {
  color: #5c6c72;
  background: #eef4f6;
}

.marker-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 254px;
  gap: 14px;
  padding: 16px;
}

.chart-wrap {
  min-width: 0;
  height: 270px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.entry-form {
  align-self: stretch;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dcebf0;
  border-radius: 8px;
  background: var(--surface-soft);
}

.entry-form h3 {
  margin: 0;
  font-size: 16px;
}

.entry-form .primary-button {
  width: 100%;
}

.readonly-panel {
  align-content: start;
}

.readonly-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.insights-panel {
  position: sticky;
  top: 24px;
  padding: 18px;
}

.insights-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.patient-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7f0f3;
  color: var(--muted);
  font-size: 13px;
}

.meta-row strong {
  color: var(--brand-ink);
  text-align: right;
}

.priority-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.priority-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  align-items: start;
  color: #33484e;
  font-size: 14px;
  line-height: 1.45;
}

.priority-list li::before {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brand-purple);
  content: "";
}

.empty-state {
  display: grid;
  height: 100%;
  place-items: center;
  border: 1px dashed #c6dce4;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  width: min(360px, calc(100% - 32px));
  border: 1px solid rgba(68, 190, 216, 0.35);
  border-radius: 8px;
  padding: 14px 16px;
  color: #135665;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .nav {
    display: flex;
    flex: 1;
    margin-top: 0;
  }

  .sidebar-footer {
    margin-top: 0;
    padding-top: 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .dynamics-layout,
  .dynamic-card-body {
    grid-template-columns: 1fr;
  }

  .insights-panel {
    position: static;
  }

  .dynamics-side-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .login-page,
  .profile-shell,
  .form-grid,
  .marker-body,
  .marker-top {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 360px;
  }

  .profile-page {
    padding: 16px;
  }

  .profile-intro {
    min-height: auto;
    gap: 22px;
    padding: 26px;
  }

  .profile-intro h1 {
    font-size: 36px;
  }

  .profile-card {
    padding: 24px;
  }

  .profile-card-head {
    flex-direction: column;
  }

  .patients-strip,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .dynamics-overview,
  .dynamic-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dynamics-kpis {
    width: 100%;
  }

  .dynamic-chart-wrap {
    height: 280px;
  }

  .content {
    padding: 20px 16px 28px;
  }

  .sidebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }
}
