:root {
  --bg: #e8f2ef;
  --surface: #ffffff;
  --ink: #1c2b26;
  --muted: #5a6f67;
  --line: #c5d6cf;
  --accent: #0f6b56;
  --accent-soft: #d7efe7;
  --cole: #1f5f8b;
  --cole-soft: #e2eff8;
  --cole-border: #7eb0d4;
  --brandi: #0f6b56;
  --brandi-soft: #d7efe7;
  --brandi-border: #6db89f;
  --amber: #9a6700;
  --amber-soft: #f6efd6;
  --amber-border: #e0c56a;
  --violet: #5b4b8a;
  --violet-soft: #ebe6f6;
  --violet-border: #b5a8d9;
  --slate: #3f4f5c;
  --slate-soft: #e4e9ed;
  --slate-border: #9aa8b4;
  --coral: #b44a3c;
  --coral-soft: #f8e5e1;
  --coral-border: #e0a399;
  /* Appointment provider entities */
  --icts: #b45309;
  --icts-soft: #fff1e0;
  --icts-border: #f0b27a;
  --choa: #5b4b8a;
  --choa-soft: #ebe6f6;
  --choa-border: #b5a8d9;
  --pcp: #3f4f5c;
  --pcp-soft: #e4e9ed;
  --pcp-border: #9aa8b4;
  --tele: #0e7490;
  --tele-soft: #e0f4f8;
  --tele-border: #7ec8d6;
  --appt: #1f6b3a;
  --appt-soft: #e7f5eb;
  --appt-border: #9dceb0;
  --pending: #8a6a1f;
  --pending-soft: #f7efd6;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  background: var(--bg);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(232, 242, 239, 0.78) 0%,
      rgba(232, 242, 239, 0.62) 38%,
      rgba(232, 242, 239, 0.84) 100%
    ),
    radial-gradient(120% 70% at 50% 18%, rgba(255, 255, 255, 0.28) 0%, transparent 55%),
    url("/static/kaylee-bg.jpg") center 18% / cover no-repeat;
}
.shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: calc(12px + var(--safe-top)) 16px calc(28px + var(--safe-bottom));
  position: relative;
}
.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 6px 0;
  background: linear-gradient(
    180deg,
    rgba(232, 242, 239, 0.94) 55%,
    rgba(232, 242, 239, 0.72) 85%,
    transparent
  );
  backdrop-filter: blur(8px);
}
.tabs.tabs-4 {
  grid-template-columns: repeat(2, 1fr);
}
.tabs.tabs-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.tabs.tabs-5 .tab {
  font-size: 11px;
  padding: 4px 3px;
  min-height: 44px;
}
.tabs.tabs-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.tabs.tabs-6 .tab {
  font-size: 12px;
  padding: 0 4px;
  min-height: 40px;
}
.user-chip {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
}
.user-card {
  display: grid;
  gap: 10px;
}
.user-card.admin {
  border-left: 4px solid var(--accent);
}
.user-card.nurse {
  border-left: 4px solid var(--slate, #6b7c85);
}
.badge.admin-badge {
  background: #e7f5eb;
  color: #1f6b3a;
}
.badge.nurse-badge {
  background: #eef2f4;
  color: #44555e;
}
.you-tag { margin: 0; font-size: 13px; }
.user-inline-form label,
.user-password-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.user-inline-form select,
.user-password-form input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}
.button.secondary,
button.secondary {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  hyphens: auto;
}
.tab-full { display: none; }
.tab-short { display: inline; }
.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.panel-head h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
}
.muted { color: var(--muted); font-size: 14px; }
.month-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.month-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.month-picker-label {
  color: var(--muted);
  font-size: 13px;
}
.month-select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  appearance: auto;
}
.upload-panel {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #f3faf7;
}
.upload-panel .muted { margin: 4px 0 0; }
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.file-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.file-field input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.upload-panel .error {
  margin: 10px 0 0;
  background: #ffe8e0;
  color: var(--warn);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.schedule-source-note {
  margin: 0 0 12px;
  font-size: 14px;
}
.override-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.override-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.visit-edit-hint {
  margin: 6px 0 8px;
  font-size: 13px;
}
.schedule-edit-panel {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf9;
}
.schedule-edit-panel .muted { margin: 4px 0 0; }
.schedule-edit-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
  align-items: end;
}
.schedule-edit-form label span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}
.schedule-edit-form input,
.schedule-edit-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.schedule-edit-form.compact {
  margin-top: 8px;
}
.schedule-nurse-tag {
  grid-column: 1 / -1;
  margin: 0;
}
.visit-edit {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.visit-edit > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent, #1f6b5a);
  list-style: none;
}
.visit-edit > summary::-webkit-details-marker { display: none; }
.month-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #f7fbf9;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.month-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pill, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge { background: var(--pending-soft); color: var(--pending); text-transform: uppercase; }
.badge.warn { background: #ffe8e0; color: var(--warn); }
.allotment { margin-bottom: 14px; }
.allotment.over { padding: 10px; border-radius: 12px; background: #fff7f4; }
.allotment-top { display: flex; justify-content: space-between; gap: 10px; }
.allotment-used {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.allotment-frac { text-align: right; color: var(--muted); font-size: 14px; }
.allotment-frac strong {
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
}
.meter {
  margin-top: 10px;
  height: 12px;
  border-radius: 999px;
  background: #e3eee9;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.allotment-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.dow, .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dow { margin-bottom: 4px; }
.dow span {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.day {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 40px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}
.day.empty { visibility: hidden; }
.day.has-visit { background: var(--accent-soft); color: var(--accent); }
.day.has-visit.cole { background: var(--cole-soft); color: var(--cole); }
.day.has-visit.brandi { background: var(--brandi-soft); color: var(--brandi); }
.day.has-visit.amber { background: var(--amber-soft); color: var(--amber); }
.day.has-visit.violet { background: var(--violet-soft); color: var(--violet); }
.day.has-visit.slate { background: var(--slate-soft); color: var(--slate); }
.day.has-visit.coral { background: var(--coral-soft); color: var(--coral); }
.day.has-visit.filtered-out {
  opacity: 0.22;
  filter: grayscale(0.4);
}
.day .dot {
  width: 5px;
  height: 5px;
  margin-top: 2px;
  border-radius: 50%;
  background: currentColor;
}
.nurse-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.legend-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: -1px;
  background: currentColor;
}
.legend-item.cole { color: var(--cole); }
.legend-item.brandi { color: var(--brandi); }
.legend-item.amber { color: var(--amber); }
.legend-item.violet { color: var(--violet); }
.legend-item.slate { color: var(--slate); }
.legend-item.coral { color: var(--coral); }
.nurse-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.filter-chip .chip-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.filter-chip.cole { border-color: var(--cole-border); color: var(--cole); }
.filter-chip.brandi { border-color: var(--brandi-border); color: var(--brandi); }
.filter-chip.amber { border-color: var(--amber-border); color: var(--amber); }
.filter-chip.violet { border-color: var(--violet-border); color: var(--violet); }
.filter-chip.slate { border-color: var(--slate-border); color: var(--slate); }
.filter-chip.coral { border-color: var(--coral-border); color: var(--coral); }
.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-chip.active .chip-meta { color: rgba(255,255,255,0.8); }
.filter-chip.cole.active {
  background: var(--cole);
  border-color: var(--cole);
  color: #fff;
}
.filter-chip.brandi.active {
  background: var(--brandi);
  border-color: var(--brandi);
  color: #fff;
}
.filter-chip.amber.active { background: var(--amber); border-color: var(--amber); color: #fff; }
.filter-chip.violet.active { background: var(--violet); border-color: var(--violet); color: #fff; }
.filter-chip.slate.active { background: var(--slate); border-color: var(--slate); color: #fff; }
.filter-chip.coral.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.filter-empty { margin: 4px 0 0; }
.visit-section {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fbf9;
  overflow: hidden;
}
.visit-section:first-child { margin-top: 4px; }
.visit-section .section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.visit-section .section-label::-webkit-details-marker { display: none; }
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  flex: 0 0 auto;
}
.visit-section[open] .chevron {
  transform: rotate(45deg);
}
.section-label h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.section-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.visit-section .list {
  padding: 0 10px 10px;
}
.list { display: flex; flex-direction: column; gap: 10px; }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #f7fbf9;
}
.card.visit {
  border-left-width: 5px;
}
.card.visit.cole {
  background: var(--cole-soft);
  border-color: var(--cole-border);
  border-left-color: var(--cole);
}
.card.visit.brandi {
  background: var(--brandi-soft);
  border-color: var(--brandi-border);
  border-left-color: var(--brandi);
}
.card.visit.amber { background: var(--amber-soft); border-color: var(--amber-border); border-left-color: var(--amber); }
.card.visit.violet { background: var(--violet-soft); border-color: var(--violet-border); border-left-color: var(--violet); }
.card.visit.slate { background: var(--slate-soft); border-color: var(--slate-border); border-left-color: var(--slate); }
.card.visit.coral { background: var(--coral-soft); border-color: var(--coral-border); border-left-color: var(--coral); }
.row-between {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.provider {
  margin: 6px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nurse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.visit.cole .provider,
.visit.cole .link,
.visit.cole .hours-chip { color: var(--cole); }
.visit.brandi .provider,
.visit.brandi .link,
.visit.brandi .hours-chip { color: var(--brandi); }
.visit.amber .provider, .visit.amber .link, .visit.amber .hours-chip { color: var(--amber); }
.visit.violet .provider, .visit.violet .link, .visit.violet .hours-chip { color: var(--violet); }
.visit.slate .provider, .visit.slate .link, .visit.slate .hours-chip { color: var(--slate); }
.visit.coral .provider, .visit.coral .link, .visit.coral .hours-chip { color: var(--coral); }
.visit.cole .hours-chip { background: #cfe3f2; }
.visit.brandi .hours-chip { background: #c5e8db; }
.visit.amber .hours-chip { background: #f0e2a8; }
.visit.violet .hours-chip { background: #d9d0ef; }
.visit.slate .hours-chip { background: #d5dde4; }
.visit.coral .hours-chip { background: #f0cfc8; }
.hours-chip {
  display: inline-flex;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.actions { margin: 8px 0 0; }
.link { color: var(--accent); font-weight: 700; text-decoration: none; }
.visit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.visit.cole .action-btn.call {
  background: var(--cole);
  border-color: var(--cole);
  color: #fff;
}
.visit.cole .action-btn.text {
  border-color: var(--cole-border);
  color: var(--cole);
  background: #fff;
}
.visit.brandi .action-btn.call {
  background: var(--brandi);
  border-color: var(--brandi);
  color: #fff;
}
.visit.brandi .action-btn.text {
  border-color: var(--brandi-border);
  color: var(--brandi);
  background: #fff;
}
.visit.amber .action-btn.call { background: var(--amber); border-color: var(--amber); color: #fff; }
.visit.amber .action-btn.text { border-color: var(--amber-border); color: var(--amber); }
.visit.violet .action-btn.call { background: var(--violet); border-color: var(--violet); color: #fff; }
.visit.violet .action-btn.text { border-color: var(--violet-border); color: var(--violet); }
.visit.slate .action-btn.call { background: var(--slate); border-color: var(--slate); color: #fff; }
.visit.slate .action-btn.text { border-color: var(--slate-border); color: var(--slate); }
.visit.coral .action-btn.call { background: var(--coral); border-color: var(--coral); color: #fff; }
.visit.coral .action-btn.text { border-color: var(--coral-border); color: var(--coral); }

/* MyChart-inspired medical appointment cards */
.appt-panel { background: transparent; border: 0; padding: 0; }
.appt-panel > .panel-head {
  padding: 0 2px 10px;
}
.appt-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #fff;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.appt-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 14px 12px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}
.appt-card:last-child { border-bottom: 0; }
.appt-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #2f8f4e;
  line-height: 1.15;
  padding-top: 2px;
}
.appt-mon,
.appt-year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.appt-date .appt-day {
  font-size: 28px;
  font-weight: 700;
  margin: 2px 0;
  font-family: Fraunces, Georgia, serif;
}
.appt-body { min-width: 0; }
.appt-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.appt-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}
.appt-title-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.standing-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f6b3a;
  background: #e7f5eb;
  border: 1px solid #b7dfc3;
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}
.video-icon {
  color: #8a8a8a;
  flex: 0 0 auto;
  margin-top: 2px;
}
.appt-card.standing {
  border-left: 3px solid #2f8f4e;
}
.appt-line {
  margin: 4px 0 0;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.35;
}
.appt-subtitle { font-style: italic; }
.appt-leave-home {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef6f1;
  color: #1f6b3a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.leave-home-inline {
  color: #1f6b3a;
  font-weight: 700;
}
.appt-card.canceled .appt-title { color: #5a5a5a; }
.appt-card.canceled .appt-leave-home {
  background: #f3f3f3;
  color: #5a5a5a;
}
.appt-actions {
  margin-top: 10px;
  border-top: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
}
.appt-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #2f8f4e;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #ececec;
}
.appt-action:last-child { border-bottom: 0; }
.appt-action-icon { flex: 0 0 auto; color: #7a7a7a; }
.appt-call-row {
  margin-top: 8px;
  padding-bottom: 2px;
  border-bottom: 0 !important;
}
.appt-card .visit-actions { margin-top: 0; }
.appt-card .action-btn.call {
  background: #2f8f4e;
  border-color: #2f8f4e;
  color: #fff;
}
.appt-card .action-btn.text {
  border-color: #8bc49a;
  color: #2f8f4e;
  background: #fff;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.check-row input {
  width: auto;
  min-height: auto;
}
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
.primary, .ghost, button {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ghost {
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
}
.logout-form { margin: 0; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
a.ghost.profile-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
a.ghost.profile-link.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.opt-in-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 6px;
  margin: 0;
  background: rgba(255, 255, 255, 0.55);
}
.opt-in-fieldset legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.checkbox-row.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  margin-bottom: 10px;
}
.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}
.checkbox-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkbox-row .muted { font-weight: 500; font-size: 13px; }
.gateway-hint code,
.soft-warn code {
  font-size: 13px;
}
.soft-warn {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--ink);
}
.profile-test-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-test-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
}
.preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sms-preview {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: pre-wrap;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
}
.danger-link {
  background: transparent;
  border: 0;
  color: var(--warn);
  min-height: auto;
  padding: 0;
  font-size: 14px;
}
.inline { margin-top: 8px; }
.login-card {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: 0 12px 32px rgba(28, 43, 38, 0.08);
  backdrop-filter: blur(10px);
}
.lede { color: var(--muted); margin: 8px 0 18px; }
.nurse-intro-panel { margin-top: 18px; }
.nurse-intro-list {
  display: grid;
  gap: 12px;
}
.nurse-intro-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf9;
}
.nurse-intro-card.admin-intro {
  border-left: 4px solid var(--accent);
  background: #f3f9f6;
}
.nurse-intro-card.nurse-intro {
  border-left: 4px solid var(--slate, #6b7c85);
}
.nurse-intro-card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
}
.nurse-intro-card .row-between {
  margin-bottom: 6px;
  align-items: center;
}
.nurse-intro-text {
  margin: 0 0 12px;
  color: var(--ink);
  line-height: 1.45;
}
.nurse-cred {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}
.nurse-cred div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  align-items: baseline;
}
.nurse-cred dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.nurse-cred dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.nurse-cred code {
  font-family: "Source Sans 3", ui-monospace, monospace;
  font-size: 0.98rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 8px;
}
.nurse-share-blurb {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed var(--line);
  white-space: pre-wrap;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.error {
  background: #ffe8e0;
  color: var(--warn);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}
.flash {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 12px;
}
.note-body { white-space: pre-wrap; margin: 8px 0; }

/* Consolidated + appointment month calendars */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.nurse-legend-swatch { color: var(--cole); }
.appt-legend-swatch { color: var(--appt); }
.icts-legend-swatch { color: var(--icts); }
.choa-legend-swatch { color: var(--choa); }
.pcp-legend-swatch { color: var(--pcp); }
.tele-legend-swatch { color: var(--tele); }
.conflict-legend-swatch { color: var(--warn); }
.cal-grid {
  width: 100%;
  min-width: 0;
}
.cal-day {
  text-decoration: none;
  color: inherit;
  gap: 2px;
  padding: 4px 2px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.cal-day.appt-day {
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  margin: 0;
}
.cal-day.today {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.cal-day.has-events {
  background: #eef6f1;
  color: var(--ink);
}
.cal-day.appt-day { background: #e7f5eb; color: #1f6b3a; }
.cal-day.conflict-same {
  background: #fff3e8;
  color: #9a4b12;
}
.cal-day.conflict-drive {
  background: #ffefe3;
  color: #a04a10;
  box-shadow: inset 0 0 0 1px #f0c090;
}
.cal-day.conflict-overlap {
  background: #ffe8e0;
  color: var(--warn);
  box-shadow: inset 0 0 0 1px #f0b3a0;
}
.drive-home-note {
  margin: -4px 0 10px;
  font-size: 13px;
}
.drive-meta {
  margin: 4px 0 0;
  font-size: 13px;
}
.conflict-card.drive_time {
  border-left-color: #e08940;
  background: #fff9f2;
}
.cal-day-num { font-size: 13px; line-height: 1; }
.cal-marks {
  display: flex;
  gap: 3px;
  justify-content: center;
  min-height: 6px;
}
.cal-marks .mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.cal-marks .mark.nurse { background: var(--cole); }
.cal-marks .mark.appt { background: var(--appt); }
.cal-marks .mark.icts { background: var(--icts); }
.cal-marks .mark.choa { background: var(--choa); }
.cal-marks .mark.pcp { background: var(--pcp); }
.cal-marks .mark.tele { background: var(--tele); }
.cal-marks .mark.conflict { background: var(--warn); }
.pill.conflict-pill {
  background: #ffe8e0;
  color: var(--warn);
  border-color: #f0b3a0;
}
.escalate-panel {
  border-color: #f0b3a0;
  background: linear-gradient(180deg, #fff8f5, #fff);
}
.conflict-card {
  border-left: 4px solid #f0a070;
}
.conflict-card.overlap {
  border-left-color: var(--warn);
  background: #fff7f4;
}
.conflict-msg {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #7a3a18;
}
.agenda-day {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.agenda-day.has-conflict { color: #9a4b12; }
.escalation-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ffe8e0;
  color: var(--warn);
  border-radius: 6px;
  padding: 2px 7px;
}
.escalation-tag.soft {
  background: #fff3e8;
  color: #9a4b12;
}
.agenda-card.has-conflict {
  box-shadow: inset 3px 0 0 #f0a070;
}
.agenda-card.appointment {
  border-color: var(--appt-border);
  background: #fff;
}
.agenda-card.appointment.icts,
.agenda-card.icts {
  border-color: var(--icts-border);
  background: var(--icts-soft);
  border-left: 4px solid var(--icts);
}
.agenda-card.appointment.choa,
.agenda-card.choa {
  border-color: var(--choa-border);
  background: var(--choa-soft);
  border-left: 4px solid var(--choa);
}
.agenda-card.appointment.pcp,
.agenda-card.pcp {
  border-color: var(--pcp-border);
  background: var(--pcp-soft);
  border-left: 4px solid var(--pcp);
}
.agenda-card.appointment.tele,
.agenda-card.tele {
  border-color: var(--tele-border);
  background: var(--tele-soft);
  border-left: 4px solid var(--tele);
}
.agenda-card.appointment.appt,
.agenda-card.appt {
  border-color: var(--appt-border);
  background: var(--appt-soft);
  border-left: 4px solid var(--appt);
}
.agenda-card.cole {
  border-left: 4px solid var(--cole);
  background: var(--cole-soft);
  border-color: var(--cole-border);
}
.agenda-card.brandi {
  border-left: 4px solid var(--brandi);
  background: var(--brandi-soft);
  border-color: var(--brandi-border);
}
.badge.appt-badge {
  background: var(--appt-soft);
  color: var(--appt);
  text-transform: none;
  letter-spacing: 0;
}
.badge.appt-badge.icts { background: #ffe4c7; color: var(--icts); }
.badge.appt-badge.choa { background: var(--choa-soft); color: var(--choa); }
.badge.appt-badge.pcp { background: var(--pcp-soft); color: var(--pcp); }
.badge.appt-badge.tele { background: var(--tele-soft); color: var(--tele); }
.badge.appt-badge.appt { background: var(--appt-soft); color: var(--appt); }
.agenda-entity-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.85;
}
.appt-month-agenda {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.appt-agenda-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.appt-agenda-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eef2f0;
  font-size: 14px;
  line-height: 1.35;
}
.appt-agenda-list li:last-child { border-bottom: 0; }

/* Admission medicine summary (hospital reconciliation) */
.med-summary-panel {
  background: linear-gradient(180deg, #f3f8f5, #fff);
}
.med-summary-lead {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.45;
}
.med-summary-asof {
  margin: 0 0 14px;
  font-size: 13px;
}
.med-summary-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.med-summary-section-head h3 {
  margin: 0 0 4px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
}
.med-summary-section-head .muted {
  margin: 0;
}
.med-summary-as-needed {
  border-top-color: #f0c9a8;
}
.med-summary-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.med-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.med-summary-table th,
.med-summary-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e8efec;
}
.med-summary-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #f7fbf9;
}
.med-summary-table tbody tr:last-child td { border-bottom: 0; }
.med-summary-table td strong {
  font-size: 14px;
  line-height: 1.3;
}
.med-summary-note {
  margin: 4px 0 0;
  font-size: 13px;
}
.med-summary-table tr.is-inactive td {
  opacity: 0.72;
}
.print-med-lead {
  margin: 0 0 10px;
  font-size: 14px;
}
.print-med-blurb {
  margin: -2px 0 10px;
  font-size: 13px;
}
.print-med-table .print-med-check {
  width: 64px;
  text-align: center;
  white-space: nowrap;
}
.print-check-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid #444;
  border-radius: 3px;
  vertical-align: middle;
}
.print-med-inactive td { color: #666; }
.print-signoff p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0;
}
.print-sign-label {
  flex: 0 0 140px;
  font-weight: 700;
  font-size: 13px;
}
.print-sign-line {
  flex: 1;
  border-bottom: 1px solid #999;
  min-height: 1.2em;
}
.print-sign-notes {
  min-height: 72px;
  border: 1px solid #bbb;
  border-radius: 6px;
  margin-top: 6px;
}

/* Medicine administration times */
.med-times-panel {
  background: linear-gradient(180deg, #eef7f2, #fff);
}
.med-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.med-time-slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.med-time-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.med-time-clock {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  color: var(--accent);
}
.med-times-note { margin: 10px 0 0; }
.med-schedule {
  margin: 6px 0 0;
  font-weight: 700;
  color: #1f6b3a;
  font-size: 14px;
}
.med-section[data-section="as-needed"] {
  border-color: #f0c9a8;
  background: #fffaf6;
}
.med-section[data-section="as-needed"] .section-label h3 {
  color: #9a4b12;
}

/* Collapsible medical notes */
.note-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px 12px;
  align-items: end;
  margin-bottom: 10px;
}
.note-filter-field { margin-bottom: 0; }
.note-search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
  grid-column: 1 / -1;
}
.note-search-input,
.note-date-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.note-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  grid-column: 1 / -1;
}
.note-search-btn {
  min-height: 44px;
  padding: 10px 14px;
}
.note-filter-clear {
  font-size: 14px;
  font-weight: 700;
}
.note-filter-summary {
  margin: 0 0 12px;
  font-size: 13px;
}
.note-pdf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}
.note-image-source {
  margin: 10px 0 12px;
}
.note-image-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}
.note-image-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.note-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f4f8f6;
}
.note-image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.note-image-caption {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .note-image-gallery {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .note-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .note-filters { grid-template-columns: 1fr; }
}
.note-section { margin-top: 10px; }
.note-panel {
  padding: 0 12px 12px;
}
.note-section.note-target {
  box-shadow: 0 0 0 2px var(--accent);
}
.note-section .note-body {
  white-space: pre-wrap;
  margin: 8px 0;
}
.pdf-viewer-panel .pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pdf-frame-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #edf3f1;
  min-height: 70vh;
}
.pdf-frame {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #fff;
}
.pdf-fallback {
  margin: 10px 0 0;
  font-size: 14px;
}

/* Calendar escalations filter */
.filter-chip.escalate-chip {
  border-color: #f0b3a0;
  color: var(--warn);
}
.filter-chip.escalate-chip.active {
  background: var(--warn);
  border-color: var(--warn);
  color: #fff;
}
.cal-day.filter-dim {
  opacity: 0.22;
  filter: grayscale(0.45);
  pointer-events: none;
}
#cal-month[data-filter="escalations"] .cal-day:not([data-conflict="1"]).has-events {
  opacity: 0.22;
  filter: grayscale(0.45);
}

/* Panel head action cluster (Print + pill) */
.panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.panel-head-actions .action-btn {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
}
.panel-head-actions .action-btn.text {
  border-color: var(--line);
  color: var(--accent);
  background: #fff;
}

/* Dedicated print pages */
.print-page {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  background: #f4f8f6;
}
.print-page::before {
  display: none;
}
.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.print-toolbar-actions {
  display: flex;
  gap: 8px;
}
.print-toolbar .primary {
  min-height: 40px;
  padding: 0 16px;
}
.print-header,
.print-main,
.print-footer {
  width: min(100%, 820px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.print-header {
  padding-top: 20px;
  padding-bottom: 8px;
}
.print-header h1 {
  margin: 4px 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.2;
}
.print-sub { margin: 0; }
.print-main { padding-bottom: 24px; }
.print-footer {
  padding: 8px 16px 28px;
  font-size: 13px;
}
.print-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0;
}
.print-section h2 {
  margin: 0 0 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
}
.print-day-title {
  margin: 14px 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.print-allotment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.print-month .day {
  aspect-ratio: auto;
  min-height: 46px;
  padding: 4px 2px;
  gap: 2px;
}
.print-day-meta {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}
.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.print-table th,
.print-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}
.print-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.print-table tbody tr:last-child td { border-bottom: 0; }

/* Desktop layout — keep the phone shell below 900px */
@media (min-width: 900px) {
  body.is-authed .shell {
    width: min(100%, 1080px);
    padding-left: 28px;
    padding-right: 28px;
  }
  body.is-auth .shell {
    width: min(100%, 520px);
    padding-top: calc(48px + var(--safe-top));
  }
  body.is-authed .brand {
    font-size: 2.1rem;
  }
  .tab-short { display: none; }
  .tab-full { display: inline; }
  .tabs.tabs-5,
  .tabs.tabs-6 {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 8px;
  }
  .tabs.tabs-5 .tab,
  .tabs.tabs-6 .tab {
    font-size: 14px;
    min-height: 44px;
    padding: 0 10px;
  }
  .app-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .desktop-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 16px;
    align-items: start;
  }
  .desktop-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
  }
  .desktop-split > .panel,
  .desktop-stack > .panel {
    margin-bottom: 0;
  }
  .calendar-month-panel,
  .appt-month-panel {
    position: sticky;
    top: 10px;
  }
  .schedule-month-panel {
    position: static;
  }
  .visits-panel,
  .agenda-panel,
  .appt-panel {
    max-height: calc(100dvh - 120px);
    overflow: auto;
  }
  .login-card {
    padding: 28px 28px 32px;
  }
}

@media print {
  @page {
    margin: 0.5in;
  }
  body,
  .print-page {
    background: #fff !important;
    font-size: 11pt;
  }
  body::before {
    display: none !important;
  }
  .no-print,
  .print-toolbar {
    display: none !important;
  }
  .print-header,
  .print-main,
  .print-footer {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .print-header { padding-top: 0; }
  .print-footer { padding-bottom: 0; }
  .print-section {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 16px;
    background: transparent;
    break-inside: avoid;
  }
  .avoid-break { break-inside: avoid; }
  .print-month .day {
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .print-table th,
  .print-table td {
    border-bottom-color: #bbb;
    padding: 5px 6px;
  }
  a { color: inherit; text-decoration: none; }
}
