.medical-record-card > .system-blue-body{
  display:grid;
  gap:18px;
}

.medical-record-head-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  align-self:center;
  gap:12px;
  min-width:180px;
}

.medical-record-updated{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  text-align:right;
}

.medical-record-updated::before{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--muted);
  content:"";
}

.medical-record-updated.is-error{
  color:var(--danger);
  font-weight:700;
}

.medical-record-updated.is-error::before{
  background:var(--danger);
}

.medical-record-updated.is-saving{
  color:var(--blue);
  font-weight:700;
}

.medical-record-updated.is-saving::before{
  background:var(--blue);
  animation:medical-record-saving-pulse 1s ease-in-out infinite;
}

.medical-record-updated.is-saved{
  color:var(--success);
  font-weight:700;
}

.medical-record-updated.is-saved::before{
  background:var(--success);
}

@keyframes medical-record-saving-pulse{
  50%{opacity:.35}
}

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

.medical-record-section{
  min-width:0;
  overflow:hidden;
  background:var(--surface);
}

.medical-record-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 0 12px;
  border-bottom:1px solid var(--line-soft);
  background:var(--surface);
}

.medical-record-section-head > div{
  min-width:0;
}

.medical-record-section-head h3{
  margin:0 0 5px;
  font-size:15px;
}

.medical-record-section-head p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.medical-record-section-body{
  padding:20px 0 0;
}

.medical-record-section-head .mini-btn,
.medical-record-copy-all{
  flex:0 0 auto;
}

.medical-record-section textarea{
  width:100%;
  height:230px;
  min-height:230px;
  max-height:230px;
  padding:12px 13px;
  resize:none;
  overflow-y:auto;
  font-size:14px;
  font-weight:720;
  line-height:1.45;
}

@media(max-width:900px){
  .medical-record-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .medical-record-card > .system-blue-head{
    align-items:flex-start;
  }

  .medical-record-head-meta{
    justify-content:flex-start;
    min-width:0;
  }

  .medical-record-updated{
    justify-content:flex-start;
    text-align:left;
  }

}
