:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111827;
  --border: #d1d5db;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --dark: #111827;
  --ok: #047857;
  --bad: #b91c1c;
  --warn: #b45309;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; min-width: 320px; background: #fff; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button {
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
  padding: .55rem .75rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 36px;
}
button.ghost, .button.ghost { background: #fff; color: var(--dark); border-color: var(--border); }
button.small, .button.small { min-height: 30px; padding: .35rem .55rem; font-size: .85rem; }
button.primary { background: #111827; color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }

.app-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; max-width: 100%; overflow-x: hidden; }
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: .65rem .9rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
  max-width: 100%;
  overflow: hidden;
}
.brand { font-weight: 900; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.main-nav { display: flex; gap: .25rem; overflow-x: auto; min-width: 0; max-width: 100%; }
.main-nav a {
  text-decoration: none;
  color: #374151;
  padding: .42rem .55rem;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a.active { background: var(--soft); color: #111827; font-weight: 700; }
.session { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; color: var(--muted); font-size: .88rem; min-width: 0; }
.session span:not(.dot) { overflow: hidden; text-overflow: ellipsis; max-width: 220px; white-space: nowrap; }
.dot { width: .55rem; height: .55rem; border-radius: 999px; display: inline-block; background: var(--muted); flex: 0 0 auto; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }

.workspace { padding: 1rem; min-width: 0; }
.module-host { max-width: 1280px; min-width: 0; margin: 0 auto; }
.module-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.module-head h1 { margin: 0 0 .25rem; font-size: 1.45rem; line-height: 1.2; }
.module-head p { margin: 0; color: var(--muted); max-width: 780px; }
.toolbar { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 .85rem; align-items: center; min-width: 0; max-width: 100%; }
.toolbar input, .toolbar select {
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 36px;
  padding: .45rem .55rem;
  background: #fff;
}
.field { display: grid; gap: .25rem; color: #374151; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 36px;
  padding: .45rem .55rem;
  background: #fff;
  color: #111827;
}
.field input[type="checkbox"] { width: 20px; min-height: 20px; padding: 0; }
.field textarea { resize: vertical; line-height: 1.35; }
.form-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .85rem;
  display: grid;
  gap: .75rem;
  background: #fff;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; }
.notice {
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 6px;
  padding: .65rem .75rem;
  background: #fff;
  color: #374151;
}
.notice.ok { border-left-color: var(--ok); }
.notice.warn { border-left-color: var(--warn); }
.actions-cell { white-space: nowrap; }
.actions-cell button + button { margin-left: .35rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.stat { border: 1px solid var(--line); border-radius: 6px; padding: .8rem; background: #fff; }
.stat strong { display: block; font-size: 1.35rem; }
.stat span { color: var(--muted); font-size: .88rem; }
.table-wrap { border: 1px solid var(--line); border-radius: 6px; overflow: auto; background: #fff; contain: content; min-width: 0; max-width: 100%; }
.paged-table { display: grid; gap: .45rem; }
.paged-table-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .45rem; }
.paged-table-controls .muted { margin-right: auto; }
.large-table tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: 44px;
}
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f9fafb; color: #374151; font-size: .78rem; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.badge { border: 1px solid var(--border); border-radius: 999px; padding: .15rem .45rem; font-size: .78rem; display: inline-flex; }
.badge.ok { border-color: #a7f3d0; color: var(--ok); }
.badge.warn { border-color: #fed7aa; color: var(--warn); }
.badge.bad { border-color: #fecaca; color: var(--bad); }
.empty-state, .login-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
}
.empty-state h1, .login-panel h1 { margin: 0 0 .5rem; font-size: 1.6rem; }
.empty-state p, .login-panel p { color: var(--muted); margin: 0 0 1rem; }
.login-panel {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
}
.error-text { color: var(--bad) !important; }
.stack { display: grid; gap: .7rem; min-width: 0; }
.row-list { display: grid; gap: .55rem; }
.row-card { border: 1px solid var(--line); border-radius: 6px; padding: .75rem; display: grid; gap: .25rem; }
.muted { color: var(--muted); }
.profile-seed {
  width: min(720px, 100%);
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .75rem;
  text-align: left;
  display: grid;
  gap: .35rem;
}
.profile-seed span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.profile-seed pre {
  margin: .25rem 0 0;
  padding: .65rem;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid var(--line);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.iaas-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: .9rem;
  display: grid;
  gap: .75rem;
}
.iaas-panel h2, .bed-board h2, .preventive-command h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.iaas-panel p, .bed-board p, .preventive-command p { margin: 0; color: var(--muted); }
.iaas-panel-head, .round-header, .bed-board-head, .round-worklist-summary, .patient-sticky-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
}
.iaas-panel-head.compact h2 { font-size: 1rem; }
.round-page { gap: .8rem; }
.round-header h1 { margin: 0 0 .2rem; font-size: 1.55rem; line-height: 1.15; }
.round-actions { display: flex; flex-wrap: wrap; align-items: end; justify-content: flex-end; gap: .5rem; min-width: min(480px, 100%); }
.round-actions .field { min-width: 150px; }

.service-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.service-filter button {
  background: #fff;
  color: #374151;
  border-color: var(--border);
  min-height: 34px;
  padding: .4rem .6rem;
}
.service-filter button.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.service-filter button.empty { opacity: .5; }
.service-filter input { flex: 1 1 230px; border: 1px solid var(--border); border-radius: 6px; min-height: 36px; padding: .45rem .55rem; }

.bed-board {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  padding: .85rem;
  display: grid;
  gap: .7rem;
}
.bed-board-totals { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.bed-board-totals span, .bed-board-totals strong {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .18rem .5rem;
  background: #fff;
  font-size: .78rem;
}
.bed-board-totals strong { border-color: #fecaca; color: var(--bad); }
.bed-board-legend { display: flex; flex-wrap: wrap; gap: .4rem; }
.legend {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #374151;
  font-size: .78rem;
}
.legend::before {
  content: "";
  width: .65rem;
  height: .65rem;
  border-radius: 2px;
  background: var(--border);
}
.legend.available::before { background: #dbeafe; }
.legend.vacant::before { background: #e5e7eb; }
.legend.reviewed::before { background: #bbf7d0; }
.legend.overdue::before { background: #fecaca; }
.bed-board-picker { max-width: 460px; }
.bed-board-grid, .round-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: .45rem;
}
.bed-board-grid > .bed-tile,
.round-nav-grid > .bed-tile {
  content-visibility: auto;
  contain-intrinsic-size: 88px 76px;
}
.bed-tile {
  min-height: 76px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: #111827;
  text-decoration: none;
  padding: .5rem;
  display: grid;
  align-content: center;
  gap: .12rem;
  text-align: left;
  overflow: hidden;
}
.bed-tile strong { font-size: 1rem; line-height: 1; }
.bed-tile span, .bed-tile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bed-tile span { font-size: .78rem; font-weight: 700; }
.bed-tile small { color: var(--muted); font-size: .72rem; }
.bed-tile.available { background: #eff6ff; border-color: #93c5fd; }
.bed-tile.vacant { background: #f3f4f6; color: #6b7280; border-style: dashed; }
.bed-tile.reviewed { background: #ecfdf5; border-color: #86efac; }
.bed-tile.overdue { background: #fef2f2; border-color: #fca5a5; }
.bed-tile.current { outline: 2px solid #111827; outline-offset: 1px; }

.preventive-command {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) 2fr;
  gap: .75rem;
}
.preventive-command-hero {
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: .85rem;
  background: #eff6ff;
  display: grid;
  gap: .3rem;
}
.preventive-command-hero span { color: #1d4ed8; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.preventive-package-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.preventive-package {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: .65rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  min-width: 0;
}
.package-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 900;
  background: #f3f4f6;
}
.preventive-package strong { display: block; font-size: 1.15rem; }
.preventive-package span, .preventive-package small, .preventive-package em {
  display: block;
  overflow-wrap: anywhere;
}
.preventive-package span { font-weight: 800; }
.preventive-package small { color: var(--muted); font-size: .78rem; }
.preventive-package em { grid-column: 1 / -1; color: #374151; font-style: normal; font-size: .78rem; }
.preventive-package.cvc .package-icon, .package-selector.cvc { background: #dbeafe; color: #1e40af; }
.preventive-package.foley .package-icon, .package-selector.foley { background: #dcfce7; color: #166534; }
.preventive-package.nav .package-icon, .package-selector.nav { background: #fee2e2; color: #991b1b; }
.preventive-package.isq .package-icon, .package-selector.isq { background: #fef3c7; color: #92400e; }
.package-selector.precaution { background: #ede9fe; color: #5b21b6; }
.package-selector.special { background: #e0f2fe; color: #075985; }

.round-worklist-summary {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .7rem;
  background: #fff;
}
.round-worklist-summary span { color: var(--muted); font-size: .78rem; text-transform: uppercase; font-weight: 800; }
.round-worklist-summary strong { display: block; font-size: 1rem; }
.round-worklist-summary small { color: var(--muted); }
.round-worklist-progress {
  width: min(320px, 40vw);
  height: .55rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  align-self: center;
}
.round-worklist-progress i { display: block; height: 100%; background: #111827; border-radius: inherit; }

.discharge-review-list {
  display: grid;
  gap: .55rem;
}
.discharge-review-card {
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fff7ed;
  padding: .7rem;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(320px, 1.1fr) auto;
  gap: .65rem;
  align-items: end;
}
.discharge-review-main {
  min-width: 0;
  display: grid;
  gap: .18rem;
}
.discharge-review-main strong,
.discharge-review-main span,
.discharge-review-main small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.discharge-review-main span,
.discharge-review-main small { color: var(--muted); }
.discharge-review-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: .45rem;
}
.discharge-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}
.preventive-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .55rem;
}
.preventive-history-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 6px;
  background: #fff;
  padding: .65rem;
  display: grid;
  gap: .25rem;
  min-width: 0;
}
.preventive-history-card.cvc { border-left-color: #60a5fa; }
.preventive-history-card.foley { border-left-color: #4ade80; }
.preventive-history-card.nav { border-left-color: #f87171; }
.preventive-history-card.isq { border-left-color: #fbbf24; }
.preventive-history-card.precaution { border-left-color: #8b5cf6; }
.preventive-history-card.special { border-left-color: #38bdf8; }
.preventive-history-card strong,
.preventive-history-card span,
.preventive-history-card small {
  overflow-wrap: anywhere;
}
.preventive-history-card span,
.preventive-history-card small,
.preventive-history-card li { color: var(--muted); font-size: .8rem; }
.preventive-history-card ul {
  margin: .15rem 0 0;
  padding-left: 1rem;
}
.pe-summary-card.draft { background: #fffbeb; }
.preventive-history-days {
  display: grid;
  gap: .55rem;
}
.preventive-history-day {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}
.preventive-history-day summary {
  cursor: pointer;
  padding: .65rem .75rem;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
}
.preventive-history-day summary span { font-weight: 800; }
.preventive-history-day summary small {
  color: var(--muted);
  text-align: right;
}
.preventive-history-content {
  border-top: 1px solid var(--line);
  padding: .7rem;
  display: grid;
  gap: .6rem;
  background: #f9fafb;
}
.preventive-history-actions {
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
}
.preventive-device-history-card { border-left-color: #0ea5e9; }

.round-list { display: grid; gap: .55rem; }
.round-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: .75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .65rem;
  align-items: center;
}
.round-list > .round-card,
.discharge-review-card,
.active-device-card,
.patient-action-card,
.preventive-history-card,
.device-draft {
  content-visibility: auto;
  contain-intrinsic-size: 96px;
}
.round-card-main { display: grid; grid-template-columns: auto 1fr; gap: .65rem; min-width: 0; }
.bed-badge {
  min-width: 48px;
  height: 48px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-weight: 900;
}
.round-card-main strong, .round-card-main span, .round-card-main small { display: block; overflow: hidden; text-overflow: ellipsis; }
.round-card-main span, .round-card-main small { color: var(--muted); }
.round-card-tags, .round-card-packages, .round-card-actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.round-card-packages span {
  border-radius: 999px;
  padding: .14rem .45rem;
  border: 1px solid var(--border);
  font-size: .76rem;
}
.round-card-packages .cvc { border-color: #bfdbfe; color: #1e40af; }
.round-card-packages .foley { border-color: #bbf7d0; color: #166534; }
.round-card-packages .nav { border-color: #fecaca; color: #991b1b; }
.round-card-packages .isq { border-color: #fde68a; color: #92400e; }
.badge.device, .badge.neutral { color: #374151; border-color: var(--border); }

.patient-sticky-summary {
  position: sticky;
  top: 58px;
  z-index: 2;
}
.patient-summary-main h1 { margin: .15rem 0; font-size: 1.25rem; line-height: 1.2; }
.back-link { color: #1d4ed8; font-weight: 800; text-decoration: none; font-size: .86rem; }
.patient-summary-side { display: flex; gap: .4rem; justify-content: flex-end; }
.device-list, .device-drafts { display: grid; gap: .6rem; }
.compact-device-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.active-device-card, .device-draft {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: .75rem;
  display: grid;
  gap: .65rem;
}
.active-device-card { grid-template-columns: 1fr minmax(150px, 210px); align-items: end; }
.active-device-card strong, .active-device-card span, .active-device-card small { display: block; }
.active-device-card span, .active-device-card small { color: var(--muted); }
.quick-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: .45rem;
}
.quick-device {
  border-color: var(--border);
  justify-content: center;
  min-height: 42px;
  color: #111827;
}
.device-draft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
}
.device-draft-head strong, .device-draft-head span { display: block; }
.device-draft-head span { color: var(--muted); font-size: .85rem; }
.package-fields { display: grid; gap: .6rem; }
.button-group-field { display: grid; gap: .35rem; }
.button-group-field > span, .check-selector > span { color: #374151; font-size: .82rem; font-weight: 800; }
.button-chip-row, .button-segment { display: flex; flex-wrap: wrap; gap: .35rem; }
.button-chip-row button, .button-segment button {
  min-height: 32px;
  padding: .32rem .5rem;
  border-color: var(--border);
  background: #fff;
  color: #111827;
  font-size: .82rem;
}
.button-chip-row button.selected, .button-segment button.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.preventive-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .65rem;
}
.patient-action-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: .7rem;
  display: grid;
  gap: .55rem;
  min-width: 0;
}
.patient-action-card strong { color: #111827; }
.patient-action-card textarea { min-height: 86px; }
.quick-discharge-fields, .pending-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .6rem;
}
.quick-discharge-card .button-chip-row { align-items: center; }
.pending-notes-grid {
  border-top: 1px solid var(--line);
  padding-top: .7rem;
  margin-top: .2rem;
}
.saved-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.saved-action-list span {
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #f0f9ff;
  color: #0f172a;
  padding: .35rem .5rem;
  font-size: .84rem;
  overflow-wrap: anywhere;
}
.preventive-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .55rem;
}
.check-selector {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .55rem;
  display: grid;
  gap: .45rem;
}
.compliance-box {
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  padding: .55rem;
  display: flex;
  justify-content: space-between;
  gap: .7rem;
}
.round-save-bar {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: .65rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}
.round-save-bar .round-nav-board {
  flex: 1 1 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .55rem;
  background: #f9fafb;
}
.round-nav-head {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .5rem;
}
.round-nav-head span { color: var(--muted); font-size: .82rem; }
.round-nav-tile { min-height: 64px; }

.iaas-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.follow-hero, .expediente-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .9rem;
}
.follow-hero h1, .expediente-hero h1 {
  margin: 0 0 .25rem;
  font-size: 1.35rem;
  line-height: 1.2;
}
.expediente-status-row, .report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.report-actions { justify-content: flex-end; }
.expediente-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .55rem;
}
.expediente-data-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .6rem;
  background: #f9fafb;
  min-width: 0;
}
.expediente-data-item span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.expediente-data-item strong {
  display: block;
  margin-top: .18rem;
  overflow-wrap: anywhere;
}
.timeline-wrap, .round-timeline {
  display: grid;
  gap: .5rem;
}
.timeline-row {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) 1fr minmax(120px, auto);
  align-items: center;
  gap: .5rem;
}
.timeline-row span, .timeline-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-row small { color: var(--muted); }
.timeline-track {
  height: .55rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.timeline-track i {
  display: block;
  height: 100%;
  min-width: 12%;
  border-radius: inherit;
  background: #111827;
}
.round-dot {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 6px;
  padding: .55rem;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.round-dot.revisado, .round-dot.reviewed { border-left-color: var(--ok); }
.round-dot.alerta { border-left-color: var(--bad); }
.round-dot.incompleto, .round-dot.pendiente { border-left-color: var(--warn); }
.round-dot span { color: var(--muted); }

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr; gap: .55rem; align-items: stretch; }
  .main-nav { padding-bottom: .2rem; }
  .session { justify-content: space-between; }
  .workspace { padding: .75rem; }
  .module-head { display: grid; }
  th, td { padding: .5rem; }
  .iaas-panel-head, .round-header, .bed-board-head, .round-worklist-summary, .patient-sticky-summary { display: grid; }
  .round-actions { justify-content: stretch; min-width: 0; }
  .round-actions .field, .round-actions button { width: 100%; }
  .preventive-command { grid-template-columns: 1fr; }
  .preventive-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .round-card { grid-template-columns: 1fr; align-items: stretch; }
  .round-card-tags, .round-card-packages, .round-card-actions { justify-content: flex-start; }
  .round-card-actions .button { flex: 1 1 130px; }
  .round-worklist-progress { width: 100%; }
  .discharge-review-card, .discharge-review-fields { grid-template-columns: 1fr; }
  .discharge-review-actions { justify-content: stretch; }
  .discharge-review-actions .button, .discharge-review-actions button { width: 100%; }
  .active-device-card { grid-template-columns: 1fr; }
  .patient-sticky-summary { top: 0; }
  .round-save-bar { display: grid; }
  .round-save-bar button { width: 100%; }
  .iaas-grid.two, .follow-hero, .expediente-hero { grid-template-columns: 1fr; display: grid; }
  .report-actions { justify-content: stretch; }
  .report-actions .button { width: 100%; }
  .timeline-row { grid-template-columns: 1fr; align-items: stretch; }
}

@media (max-width: 460px) {
  .bed-board-grid, .round-nav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bed-tile { min-height: 70px; padding: .4rem; }
  .preventive-package-grid { grid-template-columns: 1fr; }
  .preventive-check-grid { grid-template-columns: 1fr; }
}
