.med-login, .med-hero { margin-bottom: 16px; }
.med-login { min-height: 255px; }
.med-login .art, .med-hero .art { --art-width: 210px; }
.med-login h2, .med-hero h2 { font-size: clamp(21px, 2.9vw, 30px); }
.med-login p { font-size: 14px; }
.med-cabinet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}
.med-shortcuts { display: grid; align-content: start; gap: 11px; }
.med-shortcuts h2 { margin: 0; }
.med-shortcuts .button { justify-content: start; }
.med-history th { background: #17345b; }
.med-history th:first-child { border-radius: 8px 0 0 0; }
.med-history th:last-child { border-radius: 0 8px 0 0; }
.med-history tbody tr:nth-child(even) { background: #0f376a; }
.med-history #med-issues td:last-child { min-width: 105px; overflow-wrap: anywhere; font-size: 12px; }
#med-issued-qr { display: block; width: min(100%, 240px); height: auto; background: white; border-radius: 9px; }
#medical-form fieldset { display: grid; gap: 12px; border: 1px solid var(--border); border-radius: 8px; margin: 0 0 14px; padding: 14px; min-width: 0; }
#medical-form label { display: grid; gap: 5px; }
#medical-form input { width: 100%; }
#medical-preview { margin-top: 16px; }

@media (max-width: 965px) {
  .med-cabinet-layout { grid-template-columns: 1fr; }
}
@media (max-width: 465px) {
  .med-login { grid-template-columns: 1fr; }
  .med-login .art { display: none; }
}
