:root {
  --forest: #153e54;
  --forest-dark: #0d2c40;
  --ink: #243741;
  --muted: #556a76;
  --line: #dce3e5;
  --surface: #ffffff;
  --canvas: #fafbf8;
  --sidebar: #eff3f4;
  --accent-soft: #dfe9ed;
  --amber: #85521b;
  --amber-soft: #f7efdf;
  --radius: 6px;
  --sidebar-width: 222px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
}
button,
input {
  border-radius: var(--radius);
}
button {
  border: 0;
}
input {
  min-width: 0;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
a,
button,
input {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #4d7d98;
  outline-offset: 3px;
}
[tabindex="-1"]:focus {
  outline: none;
}
svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  background: var(--forest);
  color: #fff;
  z-index: 100;
  padding: 12px 18px;
}
.skip-link:focus {
  top: 10px;
}
.eyebrow {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  color: var(--forest);
  line-height: 1.15;
}
.brand-logo {
  display: block;
  width: 174px;
  height: 51px;
  object-fit: cover;
  object-position: center;
}
.brand-sub {
  display: block;
  margin: 4px 0 0 7px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 30px 18px 20px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.sidebar .brand {
  margin-left: 0;
}
.practice-context {
  margin: 42px 10px 25px;
}
.practice-context strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 3px;
}
.practice-context > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-link {
  min-height: 44px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #526671;
  font-size: 14px;
  border-radius: 4px;
}
.nav-link svg {
  width: 17px;
  height: 17px;
}
.nav-link:hover {
  background: #e4ecef;
  color: var(--forest);
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--forest-dark);
  font-weight: 600;
  box-shadow: inset 2px 0 var(--forest);
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #5d717e;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 40px 10px 22px;
}
.ava-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ava-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #c5d1c2;
  color: var(--forest);
  border-radius: 50%;
  font:
    20px Georgia,
    serif;
  background: #e5ecdf;
}
.ava-identity strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.ava-identity div > span {
  font-size: 12px;
  color: var(--muted);
}
.sidebar-bottom > p {
  font-size: 12px;
  margin-top: 16px;
  color: var(--muted);
}
.signout-form {
  border-top: 1px solid #d4dfe4;
}
.signout {
  background: none;
  width: 100%;
  min-height: 44px;
  padding: 12px 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #526671;
}
.signout:hover {
  color: var(--forest-dark);
}
.main-content {
  margin-left: var(--sidebar-width);
  min-width: 0;
}
.topbar {
  min-height: 66px;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumbs > span {
  color: #a2afb7;
  padding: 0 11px;
}
.breadcrumbs strong {
  color: #3b5362;
  font-weight: 500;
}
.demo-context {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #6c6654;
}
.demo-dot,
.attention-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #b68641;
  margin-right: 8px;
}
.demo-detail {
  white-space: pre;
}
.content-wrap {
  max-width: 1580px;
  padding: 34px 36px 20px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.page-heading .eyebrow {
  display: none;
}
.page-heading h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin-top: 0;
}
.page-heading #page-subtitle {
  max-width: 64ch;
  line-height: 1.6;
  font-size: 14px;
  color: var(--muted);
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3d6b4b;
  font-size: 13px;
  white-space: nowrap;
}
.connection > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #508257;
}
.connection.connecting {
  color: var(--amber);
}
.connection.connecting > span {
  background: #b78743;
}
.connection.offline {
  color: #9c3e2a;
}
.connection.offline > span {
  background: #b15038;
}
.refresh-button {
  min-height: 44px;
  background: #fff;
  border: 1px solid #cbd7de;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.refresh-button svg {
  width: 15px;
  height: 15px;
}
.refresh-button:hover {
  background: #eef3f6;
  border-color: #a8becb;
}
.refresh-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.sync-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.connection-error,
.form-error {
  border: 1px solid #dcbaaa;
  background: #fff4ee;
  color: #8a3f28;
  padding: 13px 16px;
  font-size: 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  margin-bottom: 24px;
}
.summary-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.summary-heading h2 {
  font-size: 14px;
  font-weight: 600;
}
.summary-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.metric {
  min-width: 0;
  padding: 0 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.metric.metric-first {
  padding-left: 0;
}
.metric:last-child {
  border-right: none;
  padding-right: 0;
}
a.metric:hover .metric-label {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.metric-label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.metric-label > span {
  color: #677f8d;
}
.metric > strong {
  font-size: 35px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--forest);
  margin: 9px 0 6px;
  font-variant-numeric: tabular-nums;
}
.metric-note {
  font-size: 12px;
  color: var(--muted);
}
.next-metric > strong {
  font-size: 24px;
  margin-top: 15px;
  margin-bottom: 11px;
  letter-spacing: -0.5px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(285px, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 22px 19px;
}
.panel h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.panel-heading p {
  max-width: 68ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 5px;
}
.text-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--forest);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.table-tools {
  padding: 0 22px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #d6dfe4;
  gap: 18px;
}
.tabs button {
  position: relative;
  padding: 9px 0 10px;
  background: none;
  color: var(--muted);
  border-radius: 0;
  font-size: 13px;
  min-height: 40px;
  white-space: nowrap;
}
.tabs button:hover {
  color: var(--forest);
}
.tabs button.selected {
  color: var(--forest);
  font-weight: 600;
}
.tabs button.selected:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--forest);
  inset: auto 0 -1px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6dfe4;
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--muted);
  min-width: 150px;
  flex: 1;
  max-width: 224px;
}
.search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.search input {
  width: 100%;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--ink);
  border-radius: 0;
  padding: 0;
}
.search:focus-within {
  outline: 2px solid #4d7d98;
  outline-offset: 1px;
}
.search input:focus {
  outline: none;
}
.search input::placeholder {
  color: #677781;
  opacity: 1;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  background: #f4f7f8;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 550;
  color: #5e747f;
  border-block: 1px solid var(--line);
  white-space: nowrap;
}
.th-note {
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}
td {
  padding: 15px 16px;
  border-bottom: 1px solid #e6ecef;
  font-size: 14px;
}
th:first-child,
td:first-child {
  padding-left: 22px;
}
th:last-child,
td:last-child {
  padding-right: 17px;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:has(.details-button:hover) {
  background: #f0f5f7;
}
.cell-title {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: #304b5d;
  white-space: normal;
}
.cell-sub {
  font-variant-numeric: tabular-nums;
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}
.record-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.status {
  color: #496b45;
  background: #edf3e8;
  padding: 4px 7px;
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
  white-space: nowrap;
}
.status.cancelled {
  background: #f0f1ed;
  color: #626e60;
}
.status.pending {
  color: var(--amber);
  background: var(--amber-soft);
}
.status.blocked {
  color: #97422b;
  background: #f8eae4;
}
.details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 72px;
  height: 44px;
  padding: 8px 11px;
  border: 1px solid #d5e0e6;
  background: #f5f8fa;
  border-radius: 4px;
  color: #355a70;
  font-size: 13px;
  font-weight: 550;
}
.details-button > span:last-child {
  font-size: 20px;
  line-height: 1;
}
.details-button:hover {
  background: #e6eef3;
  border-color: #c2d3de;
}
.panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 13px 22px;
  font-size: 12px;
  color: var(--muted);
}
.section-label {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
}
.attention-dot {
  width: 5px;
  height: 5px;
}
.queue-count {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #ded4bd;
  color: var(--amber);
  border-radius: 4px;
  font-size: 13px;
  background: #faf6eb;
}
.refills-panel {
  border-top: 2px solid #a58047;
}
.refills-panel .panel-heading {
  padding-top: 20px;
}
.refill-list {
  padding: 0 22px;
}
.refill-item {
  width: 100%;
  display: flex;
  text-align: left;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 0 22px;
  border-top: 1px solid var(--line);
  background: none;
  border-radius: 0;
}
.refill-item:hover .refill-copy strong {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--forest);
}
.refill-copy {
  min-width: 0;
}
.refill-copy strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.refill-copy small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 12px;
}
.refill-arrow {
  color: #6b7f8b;
  font-size: 18px;
}
.clinical-note {
  display: flex;
  gap: 10px;
  padding: 16px 22px 19px;
  border-top: 1px solid #e6e8de;
  background: #fafaf5;
  color: #696b55;
}
.clinical-note svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.clinical-note p {
  font-size: 12px;
  line-height: 1.7;
}
.clinical-note strong {
  display: block;
  font-size: 12px;
  color: #595f47;
  font-weight: 600;
  margin-bottom: 3px;
}
.activity-panel {
  grid-column: 1 / -1;
}
.activity-list {
  padding: 0 22px;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-top: 1px solid #e6ecef;
  padding: 14px 0;
  width: 100%;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.activity-item:hover {
  background: #f6f8f9;
}
.activity-copy small {
  overflow-wrap: anywhere;
}
.activity-arrow {
  color: var(--muted);
  font-size: 14px;
}
.activity-icon {
  color: #688461;
  flex-shrink: 0;
}
.activity-icon.rejected {
  color: #97422b;
}
.activity-icon svg {
  width: 16px;
  height: 16px;
}
.activity-copy {
  flex: 1;
  min-width: 0;
}
.activity-copy strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
}
.activity-copy small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}
.activity-time {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 18px;
}
.activity-time .status {
  min-width: 80px;
  text-align: center;
}
.patient-panel,
.settings-panel {
  display: none;
}
.patient-summary {
  padding: 0 22px 24px;
  max-width: 800px;
}
.patient-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 9px 0 26px;
}
.patient-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: var(--accent-soft);
  color: var(--forest);
  border-radius: 50%;
}
.patient-hero h3 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
.patient-hero p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.patient-fields {
  margin: 0;
}
.patient-fields > div {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 14px;
}
.patient-fields dt {
  color: var(--muted);
}
.patient-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.patient-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}
.patient-footer svg {
  width: 14px;
  height: 14px;
}
.workspace-grid.single-view {
  grid-template-columns: 1fr;
}
.workspace-grid.single-view [data-section] {
  display: none;
}
.workspace-grid.single-view .visible-section {
  display: block;
}
.workspace-grid.single-view .overview-link {
  display: none;
}
.workspace-grid.single-view .refill-list {
  max-width: 780px;
}
.workspace-grid.single-view .clinical-note p {
  max-width: 520px;
}
.workspace-grid.single-view .table-tools {
  justify-content: flex-start;
  gap: 35px;
}
.workspace-grid.single-view .search {
  max-width: 320px;
}
.workspace-footer {
  font-size: 12px;
  color: var(--muted);
  padding: 24px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.workspace-footer > div {
  display: grid;
  gap: 4px;
}
.workspace-footer small {
  font: inherit;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--forest);
}
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.workspace-footer span > span {
  padding: 0 8px;
  color: #aab4a4;
}
.empty {
  padding: 32px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  text-align: left;
}
.empty strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
  margin-bottom: 5px;
}
.empty button {
  background: none;
  color: var(--forest);
  padding: 8px 0;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 111px);
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  padding: 14px 20px;
  color: #fff;
  background: var(--forest-dark);
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: 0 5px 20px #17354d20;
  z-index: 50;
}
.record-updated {
  animation: record-flash 4s ease;
}
@keyframes record-flash {
  0%,
  30% {
    background: #e7f0dc;
  }
  100% {
    background: transparent;
  }
}
dialog {
  width: min(540px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  border: 1px solid #cbd6dd;
  border-radius: 8px;
  box-shadow: 0 18px 75px #182c3233;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
dialog::backdrop {
  background: #19354666;
}
.dialog-header {
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.icon-button {
  width: 44px;
  height: 44px;
  font-size: 26px;
  font-weight: 300;
  background: none;
  color: var(--muted);
}
.icon-button:hover {
  background: #eef3f6;
}
#record-details {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 26px;
}
.dialog-title {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  font-weight: 550;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.dialog-description {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.detail-fields {
  margin: 0;
}
.detail-fields > div {
  border-top: 1px solid var(--line);
  padding: 13px 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  font-size: 14px;
}
.detail-fields dt {
  color: var(--muted);
}
.detail-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.dialog-footer {
  flex-shrink: 0;
  background: #f3f6f8;
  border-top: 1px solid var(--line);
  padding: 17px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-footer .primary {
  white-space: nowrap;
  flex-shrink: 0;
}
#record-details:focus-visible {
  outline: 2px solid #4d7d98;
  outline-offset: -3px;
}
.dialog-footer > span {
  font-size: 12px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.primary {
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 4px;
}
.primary:hover {
  background: var(--forest-dark);
}
.login-shell {
  max-width: 1240px;
  min-height: 100vh;
  margin: auto;
  padding: 45px 60px 25px;
  display: flex;
  flex-direction: column;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 90px;
  align-items: center;
  margin: auto 0;
  padding: 65px 0;
}
.login-context h1 {
  font:
    500 52px/1.12 Georgia,
    serif;
  letter-spacing: -1.6px;
  color: var(--forest-dark);
  margin: 20px 0;
}
.login-context > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 350px;
}
.login-process {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 350px;
}
.login-process strong {
  font-weight: 450;
  color: #506877;
  margin-left: 18px;
  font-size: 13px;
}
.login-box {
  border-left: 1px solid var(--line);
  padding: 18px 0 18px 48px;
}
.login-box h2 {
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: -0.4px;
  font-weight: 550;
  margin: 15px 0 8px;
}
.login-box > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.login-box label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 10px;
}
.login-box input[type="password"] {
  width: 100%;
  background: #fff;
  border: 1px solid #b5c7d2;
  padding: 12px;
  font-size: 16px;
  color: var(--ink);
}
.login-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 13px 15px;
}
.login-box .login-help {
  margin: 18px 0 0;
  font-size: 12px;
}
.login-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .content-wrap {
    padding-top: 42px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(320px, 1fr);
    gap: 28px;
  }
  .table-tools {
    flex-wrap: nowrap;
  }
  td {
    padding-block: 19px;
  }
}
@media (max-width: 1180px) {
  :root {
    --sidebar-width: 204px;
  }
  .sidebar {
    padding-inline: 13px;
  }
  .topbar {
    padding-inline: 26px;
  }
  .content-wrap {
    padding: 28px 26px 20px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
    gap: 18px;
  }
  .heading-actions {
    gap: 12px;
  }
  .demo-detail {
    display: none;
  }
  .table-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .search {
    max-width: none;
  }
  .tabs {
    align-self: flex-start;
  }
  .metric {
    padding-inline: 20px;
  }
  .next-metric > strong {
    font-size: 22px;
  }
  .panel-heading,
  .clinical-note {
    padding-inline: 18px;
  }
  .refill-list,
  .activity-list {
    padding-inline: 18px;
  }
  .table-tools {
    padding-inline: 18px;
  }
  th,
  td {
    padding-inline: 11px;
  }
  th:first-child,
  td:first-child {
    padding-left: 18px;
  }
  .panel-footer {
    padding-inline: 18px;
  }
  .panel-footer span:last-child {
    display: none;
  }
  .toast {
    left: calc(50% + 102px);
  }
}
@media (max-width: 1000px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .refills-panel {
    grid-column: auto;
  }
  .table-tools {
    flex-direction: row;
    align-items: center;
  }
  .search {
    max-width: 245px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    padding-top: 4px;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .metric {
    padding-inline: 16px;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric-note {
    font-size: 12px;
  }
  .next-metric > strong {
    font-size: 20px;
  }
  .workspace-footer {
    flex-direction: column;
    gap: 6px;
  }
  .login-layout {
    gap: 35px;
  }
  .login-box {
    padding-left: 30px;
  }
  .login-context h1 {
    font-size: 46px;
  }
}
@media (max-width: 740px) {
  .sidebar {
    width: 100%;
    position: sticky;
    top: 0;
    padding: 10px 20px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .sidebar .brand {
    margin-left: -4px;
  }
  .brand-logo {
    width: 160px;
    height: 44px;
  }
  .brand-sub {
    font-size: 7px;
    margin-top: 2px;
  }
  .practice-context,
  .sidebar-bottom {
    display: none;
  }
  .signout-form {
    border: 0;
    position: absolute;
    top: 17px;
    right: 16px;
  }
  .signout {
    width: auto;
    gap: 10px;
    padding: 8px;
    min-height: 44px;
  }
  .sidebar nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 11px 0 0;
    margin-top: 4px;
    gap: 18px;
    scrollbar-width: thin;
  }
  .nav-link {
    padding: 12px 0;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 0;
    font-size: 13px;
    min-height: 44px;
  }
  .nav-link > span[data-icon] {
    display: none;
  }
  .nav-link.active {
    background: none;
    box-shadow: inset 0 -2px var(--forest);
  }
  .nav-link:hover {
    background: none;
  }
  .nav-count {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
  .topbar {
    min-height: 46px;
    padding: 8px 20px;
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .breadcrumbs,
  .demo-context {
    font-size: 12px;
  }
  .breadcrumbs > span {
    padding-inline: 7px;
  }
  .demo-dot {
    width: 5px;
    height: 5px;
    margin-right: 5px;
  }
  .content-wrap {
    padding: 25px 20px 20px;
  }
  .page-heading {
    display: block;
  }
  .page-heading .eyebrow {
    display: block;
  }
  .page-heading h1 {
    font-size: 28px;
    margin-top: 8px;
  }
  .page-heading #page-subtitle {
    font-size: 13px;
    max-width: 330px;
    line-height: 1.6;
  }
  .heading-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
  }
  .connection {
    font-size: 13px;
  }
  .refresh-button {
    min-height: 44px;
  }
  .sync-line {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 3px 12px;
    margin: 12px 0 20px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    padding: 0;
    margin-bottom: 24px;
  }
  .summary-heading {
    margin-bottom: 18px;
  }
  .summary-heading > span {
    display: none;
  }
  .metric {
    padding: 0 18px 20px;
  }
  .metric-middle {
    padding-right: 0;
    border: 0;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric > strong {
    font-size: 32px;
    margin: 7px 0 5px;
  }
  .metric-note {
    font-size: 12px;
  }
  .metric.next-metric {
    grid-column: 1 / -1;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    align-items: center;
  }
  .next-metric > strong {
    font-size: 18px;
    margin: 0;
    text-align: right;
  }
  .next-metric .metric-note {
    grid-column: 1 / -1;
  }
  .workspace-grid {
    gap: 20px;
  }
  .panel-heading {
    padding: 19px 17px 17px;
    gap: 10px;
  }
  .panel h2 {
    font-size: 16px;
  }
  .panel-heading p {
    font-size: 12px;
  }
  .text-link {
    font-size: 12px;
    min-height: 44px;
    gap: 5px;
  }
  .table-tools,
  .workspace-grid.single-view .table-tools {
    flex-direction: column;
    align-items: stretch;
    padding: 0 17px 17px;
    gap: 13px;
  }
  .tabs {
    gap: 22px;
    align-self: stretch;
  }
  .tabs button {
    min-height: 44px;
  }
  .search,
  .workspace-grid.single-view .search {
    max-width: none;
    min-height: 44px;
  }
  .search input {
    font-size: 16px;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  tbody {
    display: block;
  }
  tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 18px 17px;
    border-top: 1px solid var(--line);
    align-items: start;
  }
  td,
  td:first-child,
  td:last-child {
    padding: 0;
    border: 0;
    min-width: 0;
  }
  td:first-child {
    grid-row: 1;
    grid-column: 1;
  }
  td:nth-child(2) {
    grid-row: 2;
    grid-column: 1;
  }
  td:nth-child(3) {
    grid-row: 1;
    grid-column: 2;
    padding-top: 1px;
  }
  td:last-child {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
  }
  td.empty {
    grid-column: 1 / -1;
    padding: 5px 0;
  }
  .cell-title {
    font-size: 14px;
  }
  .cell-sub {
    font-size: 13px;
  }
  .record-code {
    font-size: 12px;
  }
  .status {
    font-size: 12px;
  }
  .details-button {
    background: #edf3f7;
    width: auto;
    height: 44px;
    border-color: #dce6eb;
  }
  .panel-footer {
    padding-inline: 17px;
  }
  .refill-list,
  .activity-list {
    padding-inline: 17px;
  }
  .refill-item {
    padding-block: 19px;
  }
  .refill-copy strong {
    font-size: 14px;
  }
  .clinical-note {
    padding: 16px 17px;
  }
  .activity-item {
    gap: 10px;
  }
  .activity-time {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 12px;
  }
  .activity-time .status {
    font-size: 12px;
    padding: 3px 5px;
    min-width: 0;
  }
  .activity-copy strong {
    font-size: 13px;
    line-height: 1.5;
  }
  .patient-summary {
    padding-inline: 17px;
  }
  .patient-fields > div {
    font-size: 13px;
  }
  .toast {
    left: 50%;
    width: max-content;
    font-size: 13px;
    bottom: 18px;
  }
  .dialog-header {
    padding: 10px 20px;
  }
  #record-details {
    padding: 20px;
  }
  .detail-fields > div {
    grid-template-columns: 90px 1fr;
    font-size: 13px;
  }
  .dialog-footer {
    padding: 15px 20px;
  }
  .login-shell {
    padding: 26px 24px 22px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
    margin: 0;
  }
  .login-context h1 {
    font-size: 38px;
    margin: 15px 0;
  }
  .login-context > p {
    font-size: 14px;
  }
  .login-process {
    display: none;
  }
  .login-box {
    padding: 28px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .login-box h2 {
    font-size: 22px;
  }
  .login-footer {
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.password-disclosure {
  padding: 0 22px 4px;
}
.password-disclosure summary {
  color: var(--forest);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0 20px;
}
.password-disclosure .settings-body {
  padding: 8px 0 22px;
}
.settings-body {
  padding: 0 22px 26px;
  max-width: 600px;
}
.password-form {
  display: grid;
  gap: 20px;
}
.password-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
}
.password-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b5c7d2;
  background: #fff;
  font-size: 16px;
  color: var(--ink);
}
.password-form p {
  color: var(--muted);
  font-size: 13px;
}
.password-form button {
  justify-self: start;
}
.form-success {
  border: 1px solid #b8d0b3;
  color: #355c34;
  background: #f0f7ec;
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 22px;
  font-size: 14px;
}

/* Preferences and support share the workspace's existing surfaces and type scale. */
.workspace-settings-panel,
.support-panel {
  display: none;
  grid-column: 1 / -1;
}
.workspace-settings-panel.visible-section,
.support-panel.visible-section {
  display: block;
}
.workspace-settings-body,
.support-body {
  padding: 0 22px 26px;
}
.workspace-form {
  display: grid;
  gap: 20px;
}
.workspace-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.workspace-settings-body {
  max-width: 1160px;
}
.preference-group {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(0, 2fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.preference-group:first-of-type {
  padding-top: 4px;
  border-top: 0;
}
.preference-group:last-of-type {
  padding-bottom: 4px;
}
.preference-intro h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
}
.preference-intro p,
.field-help {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
  max-width: 48ch;
}
.preference-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.settings-actions {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 2px;
}
.settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}
.workspace-form label,
.issue-status-label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
  min-width: 0;
}
.workspace-form input,
.workspace-form select,
.workspace-form textarea,
.issue-status-label select,
.diagnostics-fallback textarea {
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid #b5c7d2;
  background: white;
  border-radius: 3px;
  padding: 11px 12px;
  min-height: 44px;
  width: 100%;
  max-width: 100%;
}
.workspace-form textarea,
.diagnostics-fallback textarea {
  resize: vertical;
  line-height: 1.65;
  min-height: 125px;
}
.workspace-form label small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted);
  max-width: 390px;
}
.workspace-form :disabled {
  cursor: wait;
  opacity: 0.65;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
}
.secondary {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #b5c7d2;
  border-radius: 4px;
  background: white;
  color: var(--forest);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.secondary:hover {
  background: #edf3f5;
  border-color: #7894a4;
}
.secondary:disabled,
.text-button:disabled,
.pagination button:disabled {
  cursor: default;
  opacity: 0.5;
}
.text-button {
  min-height: 44px;
  background: none;
  padding: 5px 0;
  color: var(--forest);
  border: 0;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.form-note,
.form-note-row {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.form-note-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: -11px;
}
.form-note-row > span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.inline-message {
  border-left: 3px solid #8aabba;
  background: #f1f6f8;
  color: #304f60;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.inline-message.success {
  border-color: #69875f;
  color: #355c34;
  background: #f0f7ec;
}
.inline-message.warning {
  border-color: #b28e4c;
  color: #6e531f;
  background: #faf6ea;
}
.inline-message.error {
  border-color: #b27868;
  color: #7c3e32;
  background: #faf1ef;
}
#settings-conflict-load {
  margin: 0 0 20px;
}
.support-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.support-block {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.support-block:first-child {
  padding-top: 0;
  border-top: 0;
}
.support-block:last-child {
  padding-bottom: 0;
}
.support-column {
  min-width: 0;
}
.support-column + .support-column {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 26px;
}
@media (min-width: 1180px) {
  .support-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  .support-column + .support-column {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 28px;
  }
  .support-create .issue-form-row {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 14px;
  }
  .support-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
}
.support-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 19px;
}
.support-heading h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 7px;
}
.support-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}
.support-heading > button {
  flex-shrink: 0;
}
.diagnostic-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.diagnostic-row strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
}
.diagnostic-row small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  display: block;
  margin-top: 4px;
}
.diagnostic-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.diagnostic-row > .status {
  flex-shrink: 0;
}
.diagnostics-fallback {
  display: grid;
  gap: 8px;
  font-size: 13px;
  margin: 15px 0 10px;
}
.diagnostics-fallback textarea {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.faq-search {
  max-width: none;
  margin-bottom: 15px;
}
.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  padding: 16px 4px;
  min-height: 48px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.55;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--forest);
  border-bottom: 1.5px solid var(--forest);
  transform: rotate(45deg);
  margin: 5px 3px 0 0;
  flex-shrink: 0;
}
.faq-list details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 8px;
}
.faq-list summary:hover {
  color: var(--forest);
  background: #f5f8fa;
}
.faq-list details p {
  max-width: 68ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
  padding: 0 20px 18px 3px;
}
.empty-help {
  font-size: 13px;
  padding: 15px 0;
  color: var(--muted);
}
.issue-form-row {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
}
.issue-tools {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 18px;
}
.issue-tools .search {
  flex: 1;
  max-width: 500px;
  min-height: 44px;
}
.issue-status-label {
  min-width: 145px;
}
.issue-status-label select {
  min-height: 44px;
}
.issue-row {
  border-top: 1px solid var(--line);
}
.issue-row:last-child {
  border-bottom: 1px solid var(--line);
}
.issue-row > button {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  background: none;
  border: 0;
  padding: 18px 0;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.issue-row > button:hover {
  background: #f5f8f9;
}
.issue-row > button > span:first-child {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.issue-row strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
}
.issue-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.5;
}
.issue-row .status {
  flex-shrink: 0;
}
.issue-detail-label {
  font-size: 13px;
  font-weight: 550;
  margin: 24px 0 10px;
}
.issue-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pagination button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b5c7d2;
  border-radius: 3px;
  color: var(--forest);
  background: white;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pagination button:hover:not(:disabled) {
  background: #edf3f5;
}
.support-block .pagination {
  padding-inline: 0;
  border-top: 0;
}
.cell-title,
.cell-sub,
.activity-copy strong,
.refill-copy strong {
  overflow-wrap: anywhere;
}
body[data-density="compact"] td {
  padding-top: 10px;
  padding-bottom: 10px;
}
body[data-density="compact"] .activity-item {
  padding-block: 10px;
}
body[data-density="compact"] .refill-item {
  padding-block: 12px;
}
body[data-density="compact"] .issue-row > button {
  padding-block: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .preference-group {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 740px) {
  .password-disclosure {
    padding-inline: 17px;
  }
  .workspace-settings-body,
  .support-body {
    padding: 0 17px 22px;
  }
  .secondary,
  .text-button,
  .pagination button {
    min-height: 44px;
  }
  .settings-fields,
  .issue-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .workspace-form input,
  .workspace-form select,
  .workspace-form textarea,
  .issue-status-label select {
    font-size: 16px;
  }
  .support-heading {
    flex-direction: column;
    gap: 13px;
  }
  .support-heading > button {
    align-self: flex-start;
  }
  .support-block {
    padding-block: 23px;
  }
  .form-note-row {
    flex-direction: column;
    gap: 4px;
  }
  .issue-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .issue-status-label {
    min-width: 0;
  }
  .issue-row > button {
    gap: 10px;
  }
  .diagnostic-row {
    gap: 12px;
  }
  .pagination {
    padding-inline: 17px;
    gap: 10px;
    justify-content: space-between;
  }
  .pagination > span {
    font-size: 12px;
  }
  body[data-density="compact"] tbody tr {
    padding-block: 12px;
  }
  body[data-density="compact"] td {
    padding-block: 0;
  }
}

/* Keep the details pane usable with landscape phones or an on-screen keyboard. */
@media (max-height: 400px) {
  dialog {
    max-height: calc(100dvh - 16px);
  }
  .dialog-header {
    padding: 4px 16px;
  }
  #record-details {
    padding: 12px 16px;
  }
  .dialog-footer {
    padding: 10px 16px;
  }
}
