:root {
  color-scheme: light;
  font:
    14px/1.5 "Segoe UI",
    Arial,
    sans-serif;
  color: #24384b;
  background: #f2f5f8;
  --blue: #176497;
  --navy: #103553;
  --border: #dce4eb;
  --muted: #627587;
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.6px;
  line-height: 1.25;
}
h2 {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b8ccd9;
  border-radius: 5px;
  padding: 8px 14px;
  color: #185f8b;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
}
button:hover,
.button:hover {
  background: #eef6fc;
  border-color: #6b9ab9;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button.primary,
.search-fields > button,
.login-card button,
.release-panel form > button {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
button.primary:hover,
.search-fields > button:hover,
.login-card button:hover {
  background: #10527f;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #279fe9;
  outline-offset: 3px;
}
input,
select {
  padding: 8px 10px;
  min-height: 38px;
  color: #24384b;
  background: #fff;
  border: 1px solid #bbcbd7;
  border-radius: 4px;
  max-width: 100%;
  min-width: 0;
}
label {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #43596b;
}
form {
  margin: 0;
}
input[type="checkbox"] {
  min-height: auto;
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.7 ui-monospace,
    monospace;
  max-height: 500px;
  overflow: auto;
}
.icon {
  height: 20px;
  width: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-bottom: 8px;
}
.app-header {
  height: 65px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 26px;
  position: relative;
  z-index: 5;
  border-bottom: 3px solid #3898b9;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #fff;
  font-size: 17px;
  letter-spacing: 1.8px;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}
.brand b {
  font-weight: 400;
  opacity: 0.72;
}
.app-name {
  padding-left: 25px;
  border-left: 1px solid #496377;
  font-size: 16px;
  font-weight: 500;
}
.header-readonly {
  display: flex;
  gap: 7px;
  align-items: center;
  background: #234861;
  border: 1px solid #3c627b;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  color: #dceaf2;
}
.header-readonly .icon {
  width: 13px;
  height: 13px;
}
.account {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.account small {
  color: #b9cedd;
  font-size: 10px;
}
.account-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #42627a;
}
.account button {
  margin-left: 15px;
  color: #e2edf4;
  border-color: #4c6b81;
  background: transparent;
  font-size: 11px;
  padding: 4px 10px;
  min-height: 29px;
}
.workspace-body {
  display: flex;
  min-height: calc(100vh - 102px);
}
.app-sidebar {
  width: 205px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 26px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #7c8e9c;
  padding: 0 14px 12px;
}
.nav-item,
.nav-form {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 9px 12px;
  border-radius: 5px;
  color: #526678;
  font-size: 13px;
  font-weight: 500;
}
.nav-item:hover {
  text-decoration: none;
  background: #f1f6fa;
}
.nav-item.active,
.nav-form.active {
  background: #e6f1f8;
  color: #125d8a;
  box-shadow: inset 3px 0 #2584b5;
}
.nav-item.muted {
  color: #7e8c98;
}
.nav-form {
  padding: 0 12px;
}
.nav-form form {
  flex: 1;
}
.nav-form button {
  width: 100%;
  justify-content: flex-start;
  padding: 9px 0;
  min-height: 43px;
  background: none;
  border: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
}
.sidebar-note {
  margin-top: auto;
  padding: 60px 13px 6px;
  color: #6e808e;
  font-size: 11px;
}
.sidebar-note > .icon {
  margin-bottom: 12px;
  color: #86a4b7;
}
.sidebar-note strong {
  display: block;
  color: #536c7d;
  font-size: 11px;
  margin-bottom: 5px;
}
.sidebar-note p {
  line-height: 1.65;
}
.main-content {
  flex: 1;
  min-width: 0;
  padding: 27px 30px 30px;
  max-width: 2000px;
}
.page-heading,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.page-heading p,
.section-heading p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 13px;
}
.page-heading .badge {
  margin-top: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9e4ec;
  background: #f3f7fa;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge .icon {
  width: 12px;
  height: 12px;
}
.badge.green {
  background: #eef7f2;
  color: #287353;
  border-color: #d3e9dc;
}
.badge.amber {
  background: #fff8e9;
  color: #83600d;
  border-color: #f0e3bd;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 2px 4px #18364703;
}
.panel-heading {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading h2 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-heading h2 .icon {
  width: 17px;
  color: #5385a4;
}
.panel-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.search-fields {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 22px 22px 0;
}
.search-fields > label {
  flex: 1;
  min-width: 0;
}
.search-fields input {
  width: 100%;
}
.search-fields > button {
  min-height: 38px;
}
.field-hint {
  font-size: 11px;
  color: var(--muted);
  padding: 12px 22px 20px;
}
.empty-state {
  padding: 68px 25px 75px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 {
  color: #3f576a;
  margin: 16px 0 8px;
}
.empty-state p {
  font-size: 12px;
  max-width: 390px;
  margin: auto;
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #edf4f9;
  color: #7094ad;
}
.empty-icon .icon {
  width: 25px;
  height: 25px;
}
.empty-state button {
  margin-top: 16px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  background: #f6f8fa;
  color: #63788a;
  text-align: left;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
th,
td {
  padding: 14px 20px;
  border-bottom: 1px solid #e7edf2;
  vertical-align: middle;
}
td {
  overflow-wrap: anywhere;
}
td strong {
  font-weight: 600;
}
td button {
  font-size: 11px;
  padding: 6px 11px;
  min-height: 31px;
}
td small {
  margin-top: 4px;
}
tbody tr:hover {
  background: #f8fbfd;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.record-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 165px;
}
.record-title .icon {
  color: #5f8fac;
  width: 17px;
}
.breadcrumb {
  display: flex;
  gap: 9px;
  color: #7b8f9f;
  font-size: 11px;
  margin: -5px 0 18px;
}
.breadcrumb a {
  color: #637c8f;
}
.patient-banner {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px 7px 0 0;
  border-top: 3px solid #408fb3;
}
.patient-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e9f1f7;
  display: grid;
  place-items: center;
  color: #5f85a0;
  flex-shrink: 0;
}
.patient-avatar .icon {
  width: 27px;
  height: 27px;
}
.patient-name {
  min-width: 160px;
}
.patient-name h1 {
  font-size: 22px;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.patient-name .eyebrow {
  font-size: 9px;
  margin-bottom: 5px;
}
.patient-name > span:last-child {
  font-size: 11px;
  color: #65798a;
}
.patient-name > span strong {
  margin-left: 8px;
  color: #3e5568;
}
.patient-meta {
  display: flex;
  align-self: stretch;
  gap: 30px;
  border-left: 1px solid var(--border);
  padding-left: 25px;
  margin-left: 18px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  min-width: 0;
}
.patient-meta strong {
  font-size: 11px;
  display: block;
  margin-top: 4px;
  color: #43596b;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.patient-banner > .badge {
  margin-left: auto;
}
.chart-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 0;
  margin-bottom: 25px;
  padding: 0 20px;
  border-radius: 0 0 5px 5px;
}
.chart-tabs button {
  border: 0;
  border-radius: 0;
  font-size: 12px;
  padding: 12px 15px;
  background: none;
  color: #61788a;
}
.chart-tabs .selected {
  border-bottom: 3px solid #2281ae;
  margin-bottom: -1px;
}
.chart-tabs .selected button {
  color: #14648d;
  font-weight: 650;
}
.chart-tabs > span {
  margin-left: auto;
  font-size: 10px;
  color: #7a8d9a;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-tabs .icon {
  width: 12px;
  height: 12px;
}
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #fcfdfe;
}
.filter-bar form:first-child {
  display: flex;
  align-items: flex-end;
  gap: 13px;
}
.filter-bar input {
  font-size: 12px;
  min-width: 155px;
}
.filter-bar button {
  font-size: 11px;
  min-height: 38px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.pagination button {
  font-size: 11px;
}
.source-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #6d8393;
}
.source-note .icon {
  height: 15px;
  width: 15px;
}
.encounter-heading {
  margin-bottom: 16px;
}
.encounter-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 5px;
  color: #4d829f;
}
.encounter-heading h2 {
  font-size: 20px;
}
.encounter-heading p span {
  padding: 0 5px;
  color: #9aadb9;
}
.encounter-heading button {
  font-size: 11px;
}
.source-details {
  background: #fffcf3;
  border: 1px solid #eee5c7;
  border-radius: 5px;
  padding: 9px 13px;
  margin-bottom: 16px;
  font-size: 11px;
  color: #786537;
}
.source-details summary {
  cursor: pointer;
  font-weight: 600;
}
.source-details summary > span {
  font-weight: 400;
  margin-left: 12px;
}
.source-details p {
  margin-top: 7px;
}
.encounter-reader {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  border: 1px solid #cfdbe4;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.document-nav {
  background: #fff;
  border-right: 1px solid var(--border);
  max-height: 78vh;
  overflow: auto;
}
.document-nav-heading {
  padding: 17px 17px 14px;
  border-bottom: 1px solid var(--border);
}
.document-nav-heading h3 {
  font-size: 13px;
}
.document-nav-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.document-jump {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  border: 0;
  border-bottom: 1px solid #e9eef2;
  border-radius: 0;
  width: 100%;
  padding: 16px 15px;
  gap: 9px;
  color: #435f74;
  font-size: 11px;
  line-height: 1.4;
  min-height: 68px;
}
.document-jump .icon {
  width: 16px;
  height: 16px;
  color: #769ab2;
  margin-top: 2px;
}
.document-jump strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.document-jump small {
  font-size: 10px;
  margin-top: 5px;
}
.document-jump.selected {
  background: #eaf4fa;
  color: #155f8a;
  box-shadow: inset 3px 0 #318db5;
}
.document-note {
  padding: 26px 18px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #80929f;
  font-size: 10px;
  line-height: 1.7;
}
.document-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 3px;
}
.reader-main {
  min-width: 0;
}
.reader-toolbar {
  min-height: 54px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 9px 14px;
  background: #fcfdfe;
  font-size: 11px;
  flex-wrap: wrap;
}
.page-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-controls button {
  font-size: 20px;
  min-height: 29px;
  height: 29px;
  padding: 0 10px;
}
.page-controls label {
  flex-direction: row;
  align-items: center;
  font-size: 11px;
}
.page-controls input {
  width: 49px;
  padding: 3px;
  min-height: 29px;
  text-align: center;
  font-weight: 400;
}
.zoom-control {
  flex-direction: row;
  align-items: center;
  font-size: 11px;
  margin-left: auto;
}
.zoom-control select {
  font-size: 11px;
  padding: 4px 6px;
  min-height: 29px;
}
.reader-toolbar > button {
  min-height: 29px;
  font-size: 10px;
  padding: 4px 8px;
}
.reader-status {
  padding: 7px 15px;
  border-bottom: 1px solid #dce4ec;
  background: #f6f9fc;
  font-size: 10px;
  color: #607c91;
  min-height: 30px;
}
.reader-status.error {
  color: #9b3d32;
  background: #fff2ef;
}
.page-stack {
  height: 70vh;
  min-height: 420px;
  overflow: auto;
  background: #e7edf2;
  padding: 20px 24px;
  scroll-behavior: auto;
  overscroll-behavior: contain;
}
.record-page {
  margin: 0 auto 24px;
  max-width: 100%;
  scroll-margin-top: 12px;
}
.page-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #657e91;
  font-size: 9px;
  padding: 0 1px 9px;
}
.page-caption strong {
  white-space: nowrap;
  font-weight: 600;
}
.page-caption > span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.page-surface {
  background: white;
  box-shadow: 0 2px 9px #2b435221;
  min-height: 200px;
  width: 100%;
  overflow: hidden;
}
.page-placeholder {
  height: 800px;
  display: grid;
  place-items: center;
  color: #a2b2be;
  font-size: 13px;
}
.page-surface canvas {
  display: block;
  max-width: none;
}
.page-text {
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid #e0e8ed;
  font-size: 11px;
}
.page-text summary {
  cursor: pointer;
  color: #50758e;
}
.page-text pre {
  color: #263e50;
}
.reader-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0 17px;
}
.reader-bottom p {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #788c9d;
}
.reader-bottom p .icon {
  width: 14px;
  height: 14px;
}
.reader-bottom button {
  font-size: 10px;
  min-height: 30px;
  padding: 5px 10px;
}
.release-panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 5px;
  font-size: 12px;
}
.release-panel summary {
  cursor: pointer;
  color: #3e6985;
  font-weight: 600;
}
.release-panel p {
  margin-top: 10px;
  color: var(--muted);
}
.release-panel form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.release-panel form > label {
  flex: 1;
}
.release-panel button {
  font-size: 11px;
  min-height: 38px;
}
.notice {
  background: #eaf5f1;
  border: 1px solid #ccdfd7;
  padding: 12px 16px;
  border-radius: 5px;
  color: #336751;
  font-size: 12px;
  margin-bottom: 18px;
}
.app-footer {
  height: 37px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  background: #fff;
  border-top: 1px solid var(--border);
  color: #8496a3;
  font-size: 9px;
}
.app-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-footer .icon {
  width: 12px;
  height: 12px;
}
.footer-dot {
  padding: 0 6px;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 10px;
  z-index: 20;
  background: #fff;
  padding: 10px;
}
.skip-link:focus {
  top: 5px;
}
.login-main {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 90px;
  max-width: 1120px;
  padding: 95px 45px;
  margin: auto;
  min-height: calc(100vh - 102px);
  align-items: center;
}
.login-intro h1 {
  font-size: 42px;
  line-height: 1.2;
  color: #183d58;
  letter-spacing: -1.2px;
}
.login-intro > .eyebrow {
  color: #4d8ba9;
  margin-bottom: 22px;
}
.login-intro > p {
  font-size: 15px;
  line-height: 1.8;
  color: #6b8293;
  margin-top: 23px;
  max-width: 410px;
}
.login-benefits {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 36px;
  color: #56758b;
  font-size: 12px;
}
.login-benefits > span {
  display: flex;
  gap: 11px;
  align-items: center;
}
.login-benefits .icon {
  width: 17px;
  height: 17px;
  color: #5290ad;
}
.login-card {
  background: #fff;
  border: 1px solid #dbe5ed;
  border-radius: 9px;
  box-shadow: 0 10px 35px #1b46610a;
  padding: 32px;
}
.login-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.login-card > p {
  color: var(--muted);
  font-size: 12px;
}
.login-card form {
  margin-top: 27px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.login-card label {
  font-size: 12px;
}
.login-card input {
  min-height: 42px;
}
.login-card button {
  margin-top: 4px;
  min-height: 42px;
  justify-content: space-between;
}
.login-security {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 21px;
  margin-top: 25px;
  font-size: 10px;
  color: #7b8e9d;
}
.login-security .icon {
  height: 16px;
  width: 16px;
}
.secret {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 16px;
  background: #edf3f7;
  padding: 12px;
}
.error-panel {
  padding: 35px;
  grid-column: 1/-1;
}
.error-panel p {
  margin: 20px 0;
}
.main-content > table {
  background: #fff;
}
.main-content > form {
  margin: 15px 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.main-content > h2 {
  margin-bottom: 15px;
}
.main-content > p {
  margin-bottom: 15px;
}
.main-content > details {
  overflow-wrap: anywhere;
}
@media (min-width: 1700px) {
  .main-content {
    padding-left: 40px;
    padding-right: 40px;
  }
  .encounter-reader {
    grid-template-columns: 265px minmax(0, 1fr);
  }
}
@media (max-width: 1150px) {
  .app-sidebar {
    width: 175px;
  }
  .main-content {
    padding: 22px;
  }
  .app-header {
    gap: 18px;
    padding: 0 18px;
  }
  .header-readonly {
    display: none;
  }
  .patient-meta {
    gap: 12px;
    padding-left: 15px;
    margin-left: 0;
  }
  .patient-banner {
    gap: 12px;
    padding: 18px;
  }
  .patient-banner > .badge {
    white-space: normal;
    max-width: 120px;
  }
  .encounter-reader {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .search-fields {
    flex-wrap: wrap;
  }
  .search-fields > label {
    min-width: 130px;
  }
  .search-fields > button {
    margin-top: 4px;
  }
  .patient-name h1 {
    font-size: 19px;
  }
  .login-main {
    gap: 45px;
  }
  .login-intro h1 {
    font-size: 36px;
  }
}
@media (max-width: 850px) {
  .app-sidebar {
    width: 62px;
    padding: 23px 8px;
  }
  .sidebar-label,
  .sidebar-note {
    display: none;
  }
  .nav-item,
  .nav-form {
    font-size: 0;
    padding: 10px 12px;
    gap: 0;
    min-height: 43px;
    position: relative;
  }
  .nav-form form {
    position: absolute;
    inset: 0;
  }
  .nav-form button {
    font-size: 0;
    min-height: 43px;
  }
  .app-header .brand span {
    display: none;
  }
  .app-name {
    padding-left: 17px;
    font-size: 14px;
  }
  .account {
    font-size: 11px;
  }
  .account button {
    margin-left: 0;
  }
  .main-content {
    padding: 20px 18px;
  }
  .patient-meta {
    display: none;
  }
  .patient-banner > .badge {
    max-width: none;
    white-space: normal;
  }
  .page-stack {
    padding: 14px;
  }
  .reader-toolbar {
    gap: 9px;
  }
  .reader-toolbar > button {
    display: none;
  }
  .encounter-reader {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .zoom-control {
    margin-left: 0;
  }
  .document-jump {
    padding: 13px 10px;
  }
  .document-jump .icon {
    display: none;
  }
  .panel-heading > span {
    font-size: 10px;
  }
  .login-main {
    padding: 55px 30px;
    grid-template-columns: 1fr 350px;
    gap: 30px;
  }
  .login-card {
    padding: 25px;
  }
  .login-intro h1 {
    font-size: 30px;
  }
}
@media (max-width: 600px) {
  .app-header {
    height: 59px;
    padding: 0 12px;
    gap: 11px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .app-name {
    font-size: 12px;
    padding-left: 11px;
  }
  .account-avatar,
  .account > span:not(.account-avatar) {
    display: none;
  }
  .account {
    gap: 0;
  }
  .account button {
    font-size: 10px;
  }
  .workspace-body {
    display: block;
    min-height: calc(100vh - 96px);
  }
  .app-sidebar {
    width: auto;
    flex-direction: row;
    padding: 5px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    gap: 6px;
  }
  .nav-item,
  .nav-form {
    font-size: 10px;
    gap: 6px;
    padding: 6px 9px;
    min-height: 33px;
  }
  .nav-form form {
    position: static;
  }
  .nav-form button {
    font-size: 10px;
    min-height: 25px;
    padding: 0;
  }
  .nav-item .icon,
  .nav-form .icon {
    width: 14px;
    height: 14px;
  }
  .nav-item.muted {
    display: none;
  }
  .main-content {
    padding: 19px 12px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 19px;
  }
  .page-heading > .badge {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .search-fields {
    gap: 12px;
    padding: 18px 16px 0;
  }
  .search-fields > label {
    flex-basis: 40%;
    min-width: 115px;
  }
  .search-fields > button {
    width: 100%;
  }
  .panel-heading {
    padding: 13px 16px;
  }
  .panel-heading > span {
    max-width: 135px;
    text-align: right;
  }
  .field-hint {
    padding: 11px 16px 17px;
  }
  .empty-state {
    padding: 45px 20px 55px;
  }
  .patient-banner {
    padding: 15px 12px;
    gap: 11px;
    flex-wrap: wrap;
  }
  .patient-avatar {
    width: 42px;
    height: 42px;
  }
  .patient-name {
    min-width: 0;
    flex: 1;
  }
  .patient-name h1 {
    font-size: 19px;
  }
  .patient-banner > .badge {
    margin-left: 53px;
    font-size: 9px;
  }
  .patient-name .eyebrow {
    font-size: 8px;
  }
  .chart-tabs {
    padding: 0 7px;
    gap: 0;
    margin-bottom: 21px;
  }
  .chart-tabs > span {
    font-size: 9px;
  }
  .chart-tabs button {
    font-size: 11px;
    padding: 10px 12px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .section-heading > .muted {
    display: none;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .filter-bar {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .filter-bar form:first-child {
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-bar input {
    min-width: 0;
    width: 135px;
  }
  .filter-bar label {
    font-size: 10px;
  }
  .filter-bar button {
    min-height: 34px;
  }
  .encounter-heading {
    flex-direction: column;
  }
  .encounter-heading button {
    min-height: 30px;
  }
  .source-details summary > span {
    display: block;
    margin: 4px 0 0;
  }
  .encounter-reader {
    display: flex;
    flex-direction: column;
  }
  .document-nav {
    max-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .document-nav-heading {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .document-jump {
    min-height: 49px;
    padding: 9px 12px;
  }
  .document-jump .icon {
    display: block;
  }
  .document-jump small {
    margin-top: 3px;
  }
  .document-note {
    display: none;
  }
  .reader-toolbar {
    padding: 9px 10px;
    justify-content: space-between;
  }
  .page-stack {
    padding: 12px 8px;
    min-height: 350px;
    height: 65vh;
  }
  .page-caption > span {
    max-width: 170px;
  }
  .reader-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .app-footer {
    height: auto;
    min-height: 37px;
    padding: 10px 13px;
    font-size: 8px;
  }
  .app-footer > span:first-child {
    max-width: 170px;
  }
  .release-panel {
    padding: 13px;
  }
  .release-panel form > label {
    min-width: 100%;
  }
  .login-main {
    display: flex;
    flex-direction: column;
    padding: 34px 20px;
    gap: 28px;
    min-height: calc(100vh - 110px);
    align-items: stretch;
  }
  .login-intro h1 {
    font-size: 29px;
  }
  .login-intro > p {
    font-size: 12px;
    margin-top: 13px;
  }
  .login-intro > .eyebrow {
    font-size: 9px;
    margin-bottom: 13px;
  }
  .login-benefits {
    display: none;
  }
  .login-card {
    padding: 24px;
  }
  .signed-out .app-header .brand span {
    display: inline;
    font-size: 14px;
  }
  .signed-out .app-name {
    margin-left: auto;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .source-note {
    font-size: 10px;
    align-items: flex-start;
  }
}
@media print {
  body {
    display: none;
  }
}
.main-content > table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.main-content > table pre {
  max-width: 450px;
}
.main-content > table td {
  min-width: 100px;
}
.main-content > form {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .patient-name {
    flex-basis: calc(100% - 55px);
  }
  .patient-banner > .badge {
    margin-left: 53px;
  }
}
