:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #3d4e57;
  background: #f5f7f8;
  font-synthesis: none;
  --sage-blue: #3d4e57;
  --muted: #617179;
  --line: #e1e6e8;
  --accent: #c8d3d9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #dd942e;
  outline-offset: 3px;
}
a {
  color: inherit;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.sidebar {
  width: 244px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sage-blue);
  color: #f0f3f4;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 0 8px 44px;
}
.brand > span {
  font-size: 38px;
  letter-spacing: -2px;
  font-weight: 650;
  line-height: 0.85;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 13px;
}
.workspace-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #b4c3cb;
  margin: 0 12px 18px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #d3dce1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  width: 100%;
  text-align: left;
  border-radius: 9px;
  margin-bottom: 8px;
  font-size: 14px;
}
.nav-item.active {
  background: #dae1e5;
  color: var(--sage-blue);
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
}
.care-note {
  font-family: inherit;
  font-size: 24px;
  line-height: 1.35;
  color: #dee5e8;
  padding: 26px 12px;
  margin-bottom: 25px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #445963;
  margin-top: 20px;
  padding: 24px 4px 0;
  font-size: 14px;
}
.profile small {
  display: block;
  color: #b1c0c8;
  font-size: 12px;
  margin-top: 5px;
}
.avatar {
  background: #dce3e7;
  color: #3d4e57;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 650;
  flex-shrink: 0;
}
.shell {
  margin-left: 244px;
}
.topbar {
  min-height: 84px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.slash {
  padding: 0 12px;
  color: #bcc3c7;
}
.demo-tag {
  font-size: 11px;
  letter-spacing: 1px;
  color: #6e5b32;
  background: #fcf4de;
  border: 1px solid #eee0b9;
  border-radius: 5px;
  padding: 7px 10px;
  font-weight: 650;
}
main {
  max-width: 1540px;
  padding: 36px 40px 50px;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #506874;
  margin-bottom: 12px;
}
h1 {
  font-family: inherit;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: -1.4px;
  line-height: 1.15;
  margin: 0;
}
p {
  color: var(--muted);
  line-height: 1.5;
}
.page-heading p {
  margin: 12px 0 30px;
  font-size: 15px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}
.stat-grid article > span {
  font-size: 14px;
  color: var(--muted);
}
.stat-grid strong {
  display: block;
  font-size: 34px;
  font-weight: 550;
  margin-top: 12px;
  letter-spacing: -1px;
}
.stat-grid small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 8px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 19px;
  letter-spacing: -0.35px;
  margin: 0;
  font-weight: 650;
}
.panel-heading p {
  font-size: 14px;
  margin: 7px 0 0;
}
.primary {
  background: var(--sage-blue);
  color: #fff;
  border: 1px solid var(--sage-blue);
  border-radius: 7px;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}
.first-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 370px;
}
.first-calendar > div {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}
.first-calendar b {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
.first-calendar h3 {
  font-size: 20px;
  font-weight: 500;
}
.visit {
  border-left: 3px solid #607c8a;
  padding: 14px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
.visit h3 {
  font-size: 14px;
  font-weight: 650;
  margin: 9px 0 4px;
}
.green {
  background: #f0f3f4;
  border-color: #607c8a;
}
.blue {
  background: #eef4fc;
  border-color: #6d96c5;
}
.peach {
  background: #fcf2e9;
  border-color: #dca573;
}
@media (max-width: 1000px) {
  .sidebar {
    width: 205px;
    padding: 28px 15px;
  }
  .shell {
    margin-left: 205px;
  }
  main {
    padding: 28px 22px;
  }
  .topbar {
    padding: 18px 22px;
  }
  .first-calendar {
    overflow: auto;
  }
  .first-calendar > div {
    min-width: 140px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
  }
  .brand {
    padding: 0;
  }
  .brand > span {
    font-size: 30px;
  }
  .brand small {
    font-size: 9px;
  }
  .sidebar .workspace-label,
  .sidebar nav,
  .sidebar-bottom {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    padding: 12px 18px;
    min-height: 56px;
  }
  .topbar > span:first-child {
    display: none;
  }
  main {
    padding: 28px 16px 90px;
  }
  h1 {
    font-size: 34px;
  }
  .stat-grid {
    gap: 8px;
  }
  .stat-grid article {
    padding: 16px 12px;
  }
  .stat-grid strong {
    font-size: 28px;
  }
  .stat-grid small {
    display: block;
    margin: 5px 0 0;
    font-size: 11px;
  }
  .stat-grid article > span {
    font-size: 12px;
  }
  .panel-heading {
    padding: 18px;
    flex-wrap: wrap;
  }
  .first-calendar {
    grid-template-columns: 1fr;
  }
  .first-calendar > div {
    border-bottom: 1px solid var(--line);
  }
  .visit {
    font-size: 14px;
  }
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.flip {
  transform: rotate(180deg);
}
.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;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 6px;
  background: #3d4e57;
  border-radius: 4px;
  color: #ebeff1;
}
.active .nav-count {
  background: #c0cdd3;
  color: var(--sage-blue);
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #536670;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #eef1f3;
}
.demo-switch {
  margin: 20px 40px 0;
  padding: 11px 15px;
  border: 1px solid #dbe2e5;
  background: #edf1f3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.demo-switch > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-switch strong {
  font-weight: 600;
}
.switch-hint {
  color: var(--muted);
  margin-left: 4px;
}
select,
input,
textarea {
  color: #3d4e57;
  border: 1px solid #ced7db;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 14px;
  max-width: 100%;
}
select {
  padding-right: 28px;
}
.demo-switch select {
  font-size: 13px;
  min-height: 36px;
  max-width: 275px;
  padding-top: 7px;
  padding-bottom: 7px;
}
main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.page-heading > .eyebrow,
.page-heading > h1,
.page-heading > p {
  width: 100%;
}
.page-heading:has(> .eyebrow) {
  gap: 0;
}
.heading-date {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-top: -15px;
}
.heading-date strong {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #3d4e57;
  margin-top: 6px;
}
.heading-date > .icon {
  width: 24px;
  height: 24px;
}
.stat-grid article > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.stat-grid article > span > .icon {
  width: 17px;
  height: 17px;
  color: #768993;
}
.calendar-toolbar {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.week-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}
.week-picker strong {
  font-size: 14px;
  font-weight: 600;
}
.small-button {
  background: white;
  color: #3d4e57;
  border: 1px solid #d5dce0;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.small-button:hover {
  background: #f0f3f4;
}
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calendar-controls select {
  font-size: 13px;
}
.segmented {
  display: flex;
  padding: 3px;
  background: #f2f4f5;
  border-radius: 7px;
}
.segmented button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 33px;
  border: 0;
  border-radius: 5px;
  color: #61727a;
  background: transparent;
}
.segmented .selected {
  background: white;
  box-shadow: 0 1px 4px #3d4e571a;
  color: var(--sage-blue);
}
.calendar-scroll {
  overflow-x: auto;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  min-width: 784px;
  border-top: 1px solid var(--line);
}
.day-column {
  border-right: 1px solid var(--line);
  min-width: 0;
  background: #fff;
}
.day-column:last-child {
  border: 0;
}
.day-column:nth-last-child(-n + 2) {
  background: #fafbfb;
}
.day-header {
  height: 87px;
  border-bottom: 1px solid var(--line);
  padding: 15px 12px 12px;
  position: relative;
}
.day-header > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #6c7b83;
  font-weight: 600;
}
.day-header strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  margin-top: 8px;
  line-height: 1;
}
.day-header i {
  font-style: normal;
  font-size: 10px;
  color: #526a76;
  position: absolute;
  right: 9px;
  bottom: 17px;
}
.is-today {
  background: #fcfdfd;
}
.is-today .day-header strong {
  background: var(--sage-blue);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  font-size: 18px;
}
.day-visits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 8px;
  min-height: 435px;
}
.visit {
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
  width: 100%;
  color: #3d4e57;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 102px;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.visit:hover {
  box-shadow: 0 3px 12px #3d4e571a;
  transform: translateY(-2px);
}
.visit strong {
  font-size: 13px;
  font-weight: 650;
  margin: 8px 0 4px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.visit-time {
  font-size: 11px;
  white-space: normal;
  line-height: 1.4;
  font-weight: 500;
}
.visit-time > span {
  white-space: nowrap;
}
.visit-nurse {
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.visit-nurse small {
  font-size: 10px;
  white-space: nowrap;
}
.visit-status {
  font-size: 10px;
  margin-top: 11px;
  opacity: 0.8;
}
.blue {
  color: #355778;
}
.peach {
  color: #7d553a;
}
.violet {
  background: #f3f0fa;
  border-color: #a190c4;
  color: #675383;
}
.cancelled {
  background: #f4f5f5;
  color: #757e83;
  border-color: #aeb6ba;
}
.cancelled strong {
  text-decoration: line-through;
}
.no-visits {
  padding: 15px 5px;
  color: #718088;
  font-size: 12px;
}
.calendar-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #697981;
  flex-wrap: wrap;
}
.calendar-legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.calendar-legend .icon {
  width: 14px;
  height: 14px;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-top: 24px;
}
.upcoming-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid #eaeef0;
  padding: 16px 24px;
  background: white;
  text-align: left;
  width: 100%;
  color: #3d4e57;
}
.upcoming-row:last-child {
  border: 0;
}
.upcoming-row:hover {
  background: #fafbfc;
}
.upcoming-row > .icon {
  margin-left: auto;
  color: #728690;
  width: 16px;
}
.upcoming-row > div:nth-child(2) > strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.upcoming-row > div:nth-child(2) > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.date-tile {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-width: 45px;
  border: 1px solid var(--line);
  padding: 7px;
  border-radius: 7px;
}
.date-tile small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.date-tile strong {
  font-size: 20px;
  font-weight: 500;
  margin-top: 2px;
}
.install-card {
  background: #e9eef0;
  border: 1px solid #d8e0e4;
  border-radius: 13px;
  padding: 28px 30px;
  position: relative;
}
.install-card h2 {
  font-family: inherit;
  font-weight: 400;
  line-height: 1.2;
  font-size: 29px;
  letter-spacing: -0.5px;
}
.install-card p {
  font-size: 13px;
  max-width: 300px;
  margin: 14px 0;
}
.install-symbol {
  width: 42px;
  height: 42px;
  background: #d8e0e4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 26px;
  top: 25px;
}
.install-card .eyebrow {
  font-size: 10px;
  padding-right: 45px;
}
.text-button {
  background: transparent;
  color: var(--sage-blue);
  border: 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 650;
}
.text-button .icon {
  width: 18px;
}
footer {
  font-size: 11px;
  color: #6b7b83;
  line-height: 1.5;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
footer > span {
  font-style: italic;
}
.pill {
  display: inline-flex;
  padding: 7px 11px;
  background: #eceff1;
  color: #465b65;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 5px;
}
.cancel-pill {
  background: #f8ebea;
  color: #9d4545;
}
.mobile-nav {
  display: none;
}
.agenda {
  border-top: 1px solid var(--line);
}
.agenda-day {
  display: grid;
  grid-template-columns: 145px 1fr;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.agenda-day:last-child {
  border: 0;
}
.agenda-day h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 2px 0;
}
.agenda-day h3 span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.agenda-day h3 em {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: #4e6570;
  margin-top: 7px;
}
.agenda-day > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-visit {
  min-height: 84px;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 5px 10px;
}
.list-visit .visit-time {
  grid-row: 1/3;
  font-size: 13px;
}
.list-visit strong {
  font-size: 15px;
  margin: 0;
}
.list-visit .visit-nurse {
  font-size: 12px;
}
.list-visit .visit-status {
  position: absolute;
  right: 40px;
  top: 20px;
  margin: 0;
}
.list-visit > .icon {
  position: absolute;
  right: 12px;
  top: 32px;
  width: 15px;
}
.empty {
  padding: 55px 22px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 32px;
  height: 32px;
}
.empty h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 16px 0 8px;
}
.empty p {
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.padding {
  padding: 0 24px 20px;
}
.count {
  display: inline-block;
  font-size: 12px;
  vertical-align: middle;
  margin-left: 7px;
  background: #edf1f3;
  padding: 4px 8px;
  border-radius: 5px;
}
.people-toolbar {
  display: flex;
  padding: 18px 24px;
  gap: 12px;
}
.people-toolbar input {
  flex: 1;
  max-width: 400px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #6a7981;
  background: #f8f9fa;
  padding: 14px 24px;
  border-block: 1px solid var(--line);
}
td {
  padding: 18px 24px;
  border-bottom: 1px solid #e9ecee;
}
tr:last-child td {
  border-bottom: 0;
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.person-cell strong {
  font-weight: 550;
  font-size: 14px;
}
.person-cell small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.role-badge {
  display: inline-block;
  border: 1px solid #d7dfe3;
  background: #f4f6f7;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}
.role-badge.nurse {
  background: #f0f5fb;
  border-color: #dae4f0;
  color: #4d6e8a;
}
.role-badge.family {
  background: #faf4eb;
  border-color: #eaddc8;
  color: #816743;
}
.access-list {
  max-width: 240px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  min-width: 130px;
}
.account-status {
  font-size: 12px;
  color: #495e69;
}
.account-status.inactive {
  color: #8c6767;
}
.activity-list {
  padding: 0 24px;
}
.activity-list article {
  display: flex;
  gap: 16px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.activity-list article:last-child {
  border: 0;
}
.activity-list article > .icon {
  padding: 8px;
  box-sizing: content-box;
  background: #eef2f4;
  color: #617d8b;
  border-radius: 50%;
}
.activity-list strong {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
}
.activity-list p {
  font-size: 12px;
  margin: 7px 0 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-section {
  padding: 28px;
}
.settings-section p {
  font-size: 14px;
  line-height: 1.7;
}
.settings-section .small {
  font-size: 12px;
}
.setting-icon {
  display: block;
  color: #63808e;
  margin-bottom: 20px;
}
.setting-icon .icon {
  width: 26px;
  height: 26px;
}
.notice {
  padding: 16px 18px;
  background: #fbf5e7;
  border: 1px solid #eddfbe;
  border-radius: 8px;
  color: #78633a;
  font-size: 14px;
  line-height: 1.65;
  margin: 20px 0;
}
.danger-text {
  color: #a14444;
}
dialog {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 100px #3d4e5744;
  width: min(540px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  padding: 26px;
  color: #3d4e57;
  overflow-y: auto;
  background: #fff;
}
dialog::backdrop {
  background: #142c3d73;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dialog-head .eyebrow {
  font-size: 10px;
  margin: 0;
}
dialog h2 {
  font-family: inherit;
  font-weight: 400;
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
dialog > p {
  font-size: 14px;
}
dialog form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
  font-size: 14px;
  font-weight: 500;
}
dialog input,
dialog select {
  width: 100%;
  font-size: 16px;
  min-height: 46px;
}
dialog input[readonly] {
  background: #f5f6f7;
  color: #68757b;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-columns label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 8px;
}
.form-help {
  font-size: 12px;
  line-height: 1.65;
  color: #64747c;
}
.form-error {
  color: #a63e3e;
  font-size: 14px;
  line-height: 1.5;
}
.form-error:empty {
  display: none;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.dialog-actions .small-button:first-child {
  margin-right: auto;
}
.detail-title {
  margin-top: 18px;
}
.detail-list {
  margin: 28px 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
  font-size: 14px;
}
.detail-list dt {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.detail-list dd {
  margin: 0;
  text-align: right;
  line-height: 1.6;
}
.detail-list .icon {
  width: 17px;
}
.checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  line-height: 1.6;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin: 12px 0 !important;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--sage-blue);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
}
legend {
  font-size: 14px;
  padding: 0 6px;
}
.notice-copy {
  background: #f5f7f8;
  padding: 16px 20px;
  border-radius: 8px;
  max-height: 250px;
  overflow: auto;
}
.notice-copy h3,
.install-steps h3 {
  font-size: 16px;
}
.notice-copy p,
.install-steps li {
  font-size: 14px;
  line-height: 1.7;
}
.install-steps ol {
  padding-left: 23px;
}
.install-steps li {
  margin: 10px 0;
}
.full-width {
  width: 100%;
}
.notification-preview {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f0f3f5;
  border: 1px solid #dde4e7;
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
}
.notification-preview strong {
  font-size: 14px;
}
.notification-preview p {
  font-size: 14px;
  margin: 8px 0 0;
}
.toast {
  background: #3d4e57;
  color: #fff;
  padding: 15px 20px;
  border: 1px solid #4c636e;
  box-shadow: 0 5px 20px #3d4e5726;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.5;
  animation: slide-in 0.2s ease-out;
  max-width: 430px;
}
#toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
@keyframes slide-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .day-visits {
    padding: 16px 12px;
  }
  .visit {
    padding: 15px 12px;
  }
  .visit strong {
    font-size: 14px;
  }
  .visit-time,
  .visit-nurse {
    font-size: 12px;
  }
}
@media (max-width: 1250px) {
  .switch-hint {
    display: none;
  }
  .heading-date {
    display: none;
  }
  .calendar-toolbar {
    gap: 10px;
  }
  .week-grid {
    min-width: 800px;
  }
  .stat-grid small {
    display: block;
    margin: 5px 0 0;
  }
  .list-visit {
    grid-template-columns: 140px 1fr;
  }
  .list-visit .visit-status {
    position: static;
    grid-column: 2;
  }
  .list-visit > .icon {
    top: 37px;
  }
  .demo-switch {
    margin-inline: 22px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 190px;
    padding-inline: 12px;
  }
  .shell {
    margin-left: 190px;
  }
  .brand {
    padding-left: 10px;
  }
  .nav-item {
    padding: 13px 11px;
  }
  .nav-item .icon {
    width: 18px;
  }
  .care-note {
    font-size: 22px;
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .install-card {
    padding: 25px;
  }
  .install-card h2 br {
    display: none;
  }
  .install-card p {
    max-width: none;
  }
  .demo-switch {
    flex-wrap: wrap;
    gap: 10px;
  }
  .demo-switch select {
    max-width: 100%;
    width: 100%;
  }
  .topbar {
    gap: 8px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .breadcrumb .slash {
    padding-inline: 5px;
  }
  .demo-tag {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .top-actions {
    gap: 5px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .agenda-day {
    grid-template-columns: 100px 1fr;
  }
  .list-visit {
    display: flex;
    align-items: flex-start;
  }
  .list-visit .visit-status {
    margin-top: 3px;
  }
  .list-visit > .icon {
    top: 45px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    width: auto;
    display: block;
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
  }
  .brand {
    padding: 0;
    gap: 7px;
    width: fit-content;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand > span {
    font-size: 30px;
  }
  .brand small {
    margin-top: 9px;
    font-size: 8px;
    letter-spacing: 2.5px;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    position: absolute;
    top: max(17px, env(safe-area-inset-top));
    right: 12px;
    background: transparent;
    border: 0;
    padding: 0;
    min-height: 40px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions > .icon-button {
    color: #f0f3f4;
  }
  .top-actions > .icon-button:hover {
    background: #3d4e57;
  }
  .demo-tag {
    background: #3d4e57;
    color: #d7e0e4;
    border-color: #526975;
    font-size: 9px;
    letter-spacing: 0.5px;
    padding: 7px 8px;
  }
  .demo-switch {
    margin: 16px 16px 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .demo-switch > span {
    font-size: 12px;
  }
  .demo-switch select {
    font-size: 14px;
    min-height: 42px;
  }
  .demo-switch .icon {
    width: 17px;
    height: 17px;
  }
  main {
    padding: 26px 16px 102px;
  }
  .page-heading {
    gap: 0;
  }
  .page-heading p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .eyebrow {
    font-size: 10px;
  }
  h1 {
    font-size: 33px;
    letter-spacing: -0.9px;
  }
  .stat-grid {
    gap: 8px;
    margin-bottom: 22px;
  }
  .stat-grid article {
    padding: 14px 10px;
    border-radius: 9px;
  }
  .stat-grid article > span {
    display: block;
    font-size: 11px;
    line-height: 1.5;
  }
  .stat-grid article > span > .icon {
    display: none;
  }
  .stat-grid strong {
    font-size: 27px;
    margin-top: 8px;
  }
  .stat-grid small {
    font-size: 10px;
    line-height: 1.5;
    min-height: 28px;
    letter-spacing: 0;
  }
  .panel {
    border-radius: 10px;
  }
  .panel-heading {
    padding: 20px 16px;
    gap: 14px;
  }
  .panel-heading p {
    font-size: 12px;
    line-height: 1.6;
  }
  .panel-heading .primary {
    width: 100%;
  }
  .calendar-toolbar {
    padding: 13px 10px;
    display: block;
  }
  .week-picker {
    justify-content: space-between;
    gap: 0;
  }
  .week-picker strong {
    font-size: 12px;
  }
  .week-picker .icon-button {
    width: 30px;
  }
  .week-picker .small-button {
    font-size: 12px;
    padding: 7px 10px;
    min-height: 36px;
  }
  .calendar-controls {
    margin-top: 12px;
    gap: 10px;
    padding-inline: 5px;
  }
  .calendar-controls select {
    flex: 1;
    min-width: 0;
    font-size: 13px;
  }
  .calendar-legend {
    padding: 14px 16px;
    gap: 9px;
    font-size: 10px;
  }
  .week-grid {
    min-width: 850px;
  }
  .agenda-day {
    padding: 17px 14px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .agenda-day h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }
  .agenda-day h3 span {
    font-size: 11px;
    margin: 0;
  }
  .agenda-day h3 em {
    margin: 0 0 0 auto;
  }
  .list-visit {
    display: grid;
    grid-template-columns: 1fr;
    padding: 14px 15px;
    gap: 5px;
    min-height: 112px;
  }
  .list-visit .visit-time {
    grid-row: auto;
    font-size: 12px;
  }
  .list-visit strong {
    font-size: 15px;
    padding-right: 20px;
  }
  .list-visit .visit-status {
    position: absolute;
    right: 15px;
    top: 11px;
    font-size: 10px;
    grid-column: auto;
  }
  .list-visit .visit-nurse {
    font-size: 12px;
  }
  .list-visit > .icon {
    right: 12px;
    top: 50px;
  }
  .lower-grid {
    gap: 18px;
    margin-top: 20px;
  }
  .upcoming-row {
    padding: 16px;
    gap: 12px;
  }
  .upcoming-row > div:nth-child(2) > span {
    font-size: 11px;
  }
  .install-card h2 {
    font-size: 28px;
  }
  .install-card p {
    font-size: 14px;
  }
  .install-card .eyebrow {
    font-size: 10px;
  }
  .install-symbol {
    right: 20px;
  }
  .mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 7px 4px max(7px, env(safe-area-inset-bottom));
    box-shadow: 0 -3px 16px #3d4e5706;
  }
  .mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    justify-content: center;
    color: #65767e;
    padding: 8px 5px;
    margin: 0;
    width: 20%;
    font-size: 10px;
    border-radius: 8px;
    min-height: 49px;
  }
  .mobile-nav .nav-item.active {
    color: var(--sage-blue);
    background: #ebeff1;
  }
  .mobile-nav .nav-count {
    display: none;
  }
  .mobile-nav .nav-item .icon {
    width: 20px;
    height: 20px;
  }
  .settings-section {
    padding: 24px;
  }
  .settings-section p {
    font-size: 14px;
  }
  .people-toolbar {
    padding: 16px;
    flex-wrap: wrap;
  }
  .people-toolbar input {
    max-width: none;
    width: 100%;
    flex: auto;
  }
  th {
    padding: 13px 16px;
  }
  td {
    padding: 16px;
  }
  .person-cell {
    min-width: 190px;
  }
  .person-cell .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .activity-list {
    padding: 0 17px;
  }
  .activity-list article {
    gap: 12px;
  }
  .activity-list strong {
    font-size: 13px;
  }
  .activity-list p {
    font-size: 11px;
  }
  footer {
    font-size: 10px;
    display: block;
    margin-top: 24px;
  }
  footer span {
    display: none;
  }
  dialog {
    padding: 20px;
    max-height: calc(100dvh - 32px);
    border-radius: 13px;
  }
  .dialog-head {
    margin-bottom: 20px;
  }
  .dialog-head .eyebrow {
    font-size: 9px;
  }
  dialog h2 {
    font-size: 28px;
  }
  .detail-list > div {
    font-size: 13px;
    gap: 12px;
  }
  .form-columns {
    gap: 10px;
  }
  .dialog-actions {
    gap: 10px;
  }
  .dialog-actions .primary,
  .dialog-actions .small-button {
    font-size: 13px;
  }
  .notice {
    font-size: 13px;
    padding: 14px;
  }
  .toast {
    font-size: 13px;
    padding: 13px 16px;
  }
  #toasts {
    left: 16px;
    right: 16px;
    bottom: calc(85px + env(safe-area-inset-bottom));
  }
  .toast {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
/* Separate, large-type client and admin entry points. */
.portal-header {
  min-height: 96px;
  padding: 20px max(24px, calc((100vw - 1120px) / 2));
  background: #3d4e57;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.portal-brand small {
  display: block;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 400;
  margin-top: 2px;
}
.portal-demo {
  font-size: 14px;
  color: #e7ecef;
}
.login-main {
  max-width: 640px;
  padding: 48px 24px 60px;
}
.login-card {
  padding: 36px 40px;
  background: #fff;
  border: 1px solid #d8dfe3;
  border-radius: 18px;
  box-shadow: 0 10px 40px #3d4e5707;
}
.login-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8edef;
  color: #3d4e57;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.login-symbol .icon {
  width: 28px;
  height: 28px;
}
.portal-kicker {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 1px;
  color: #445963;
  margin: 0 0 14px;
}
.login-card h1 {
  font-size: 40px;
  letter-spacing: -1px;
}
.login-intro {
  font-size: 19px;
  color: #485c66;
  line-height: 1.55;
  margin: 16px 0 28px;
}
#login-form label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin: 22px 0 10px;
}
#login-form input {
  font-size: 19px;
  min-height: 58px;
  width: 100%;
  padding: 14px;
}
#login-form .form-error {
  font-size: 17px;
  line-height: 1.6;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 85px !important;
}
.password-field button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: #edf1f3;
  color: #3d4e57;
  font-size: 16px;
  min-width: 68px;
}
.login-submit {
  font-size: 19px;
  min-height: 60px;
  width: 100%;
  margin-top: 28px;
  justify-content: center;
  padding-inline: 22px;
}
.login-help {
  display: block;
  width: 100%;
  min-height: 52px;
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
  border: 0;
  background: none;
  color: #3d4e57;
  margin-top: 12px;
}
.verification-details {
  border-top: 1px solid #dce2e5;
  padding-top: 22px;
  margin-top: 20px;
  font-size: 15px;
  color: #485860;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.verification-details strong {
  font-weight: 650;
  color: #3d4e57;
}
.verification-details p {
  font-size: 15px;
  margin: 5px 0;
  color: #485860;
}
.verification-details code {
  overflow-wrap: anywhere;
  font-family: inherit;
  font-weight: 600;
}
.portal-other {
  display: block;
  padding: 20px 10px;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: #3d4e57;
  min-height: 52px;
  text-underline-offset: 4px;
}
.admin-login .login-symbol {
  background: #e9eef8;
}
.client-signout {
  background: transparent;
  border: 1px solid #89a0ab;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  min-height: 52px;
  font-size: 18px;
}
.client-main {
  max-width: 800px;
  padding: 42px 24px 40px;
}
.client-greeting h1 {
  font-size: 46px;
}
.client-greeting > p:last-child {
  font-size: 20px;
  color: #495c65;
  margin: 14px 0 30px;
}
.client-tabs {
  display: flex;
  gap: 8px;
  background: #e6ebee;
  padding: 6px;
  border-radius: 12px;
  margin: 0 0 26px;
}
.client-tabs button {
  flex: 1;
  border: 0;
  border-radius: 8px;
  min-height: 60px;
  padding: 13px 10px;
  font-size: 19px;
  font-weight: 600;
  color: #3d4e57;
  background: transparent;
}
.client-tabs button.selected {
  background: #3d4e57;
  color: #fff;
  box-shadow: 0 2px 5px #3d4e5720;
}
.next-visit {
  border: 2px solid #3d4e57;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.next-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 26px;
  background: #3d4e57;
  color: #fff;
}
.next-label h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}
.simple-visit {
  border: 1px solid #d4dce0;
  background: #fff;
  padding: 26px 28px;
  border-radius: 13px;
  margin-bottom: 16px;
}
.simple-visit.featured {
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 30px;
}
.simple-visit h3 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.25px;
  margin: 0;
  font-weight: 650;
}
.simple-visit h3 > span {
  display: block;
  font-size: 19px;
  font-weight: 400;
  color: #4b5c65;
  margin-top: 7px;
}
.simple-time {
  font-size: 24px;
  line-height: 1.5;
  color: #3d4e57;
  font-weight: 600;
  margin: 18px 0 22px;
}
.featured .simple-time {
  font-size: 30px;
}
.simple-nurse {
  display: flex;
  gap: 14px;
  align-items: center;
  border-top: 1px solid #e1e6e9;
  padding-top: 22px;
}
.simple-nurse .avatar {
  width: 52px;
  height: 52px;
  font-size: 18px;
}
.simple-nurse > div > span {
  display: block;
  font-size: 16px;
  color: #52636b;
  margin-bottom: 5px;
}
.simple-nurse strong {
  font-size: 21px;
  font-weight: 600;
}
.simple-visits {
  margin-top: 32px;
}
.simple-visits > h2 {
  font-size: 23px;
  margin: 0 0 18px;
}
.client-more {
  width: 100%;
  min-height: 56px;
  background: white;
  border: 1px solid #495e69;
  border-radius: 9px;
  font-size: 19px;
  color: #3d4e57;
  margin-top: 5px;
}
.client-help-card {
  padding: 26px 28px;
  background: #e8edef;
  border: 1px solid #cdd7dc;
  border-radius: 13px;
  margin-top: 30px;
}
.client-help-card h2 {
  font-size: 23px;
}
.client-help-card p {
  font-size: 18px;
  color: #40525b;
  line-height: 1.65;
}
.client-help-card button {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  background: white;
  border: 1px solid #8da0a9;
  border-radius: 7px;
  color: #3d4e57;
  padding: 12px 18px;
  font-size: 18px;
}
.client-bottom {
  margin-top: 28px;
  text-align: center;
}
.client-bottom button {
  border: 0;
  background: none;
  color: #3d4e57;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 17px;
  line-height: 1.6;
  min-height: 58px;
  padding: 10px;
}
.client-bottom p {
  font-size: 15px;
  color: #566770;
  line-height: 1.6;
  margin: 12px 0;
}
.client-bottom .client-demo-note {
  font-size: 14px;
}
.client-empty {
  padding: 32px 24px;
  background: white;
  border: 1px solid #dae1e5;
  border-radius: 14px;
}
.client-empty h2 {
  font-size: 24px;
  line-height: 1.4;
}
.client-empty p {
  font-size: 19px;
  line-height: 1.7;
}
.cancelled-label {
  display: block;
  font-size: 18px;
  color: #963d35;
  margin-bottom: 16px;
}
.cancelled-visit {
  border-color: #debbb4;
  background: #fff9f7;
}
.cancelled-visit .simple-time {
  text-decoration: line-through;
  color: #785951;
}
.client-offline {
  padding: 18px;
  border: 1px solid #d9c699;
  background: #fbf4e4;
  color: #70552a;
  font-size: 18px;
  line-height: 1.6;
  border-radius: 10px;
}
.client-mode dialog {
  width: min(600px, calc(100% - 28px));
}
.client-mode dialog > p,
.client-mode .notice-copy p,
.client-mode .install-steps li {
  font-size: 18px;
  line-height: 1.7;
}
.client-mode .notice-copy h3 {
  font-size: 20px;
}
.client-mode dialog .checkbox-row {
  font-size: 18px !important;
  line-height: 1.6;
  min-height: 52px;
}
.client-mode .checkbox-row input {
  width: 24px;
  height: 24px;
  min-height: 24px;
}
.client-mode dialog .primary,
.client-mode dialog .small-button {
  min-height: 54px;
  font-size: 18px;
}
.client-mode .form-help {
  font-size: 16px;
}
.client-mode .icon-button {
  width: 48px;
  height: 48px;
}
.client-mode .notice-copy {
  max-height: 320px;
}
.client-mode .dialog-head .eyebrow {
  font-size: 12px;
}
@media (max-width: 700px) {
  .portal-header {
    padding: 18px 20px;
    padding-top: max(18px, env(safe-area-inset-top));
    min-height: 88px;
  }
  .portal-brand {
    font-size: 25px;
  }
  .portal-brand small {
    font-size: 12px;
  }
  .portal-brand img {
    width: 36px;
    height: 36px;
  }
  .portal-demo {
    font-size: 12px;
    max-width: 120px;
    text-align: right;
    line-height: 1.5;
  }
  .login-main {
    padding: 26px 16px 30px;
  }
  .login-card {
    padding: 28px 22px;
    border-radius: 14px;
  }
  .login-card h1 {
    font-size: 34px;
  }
  .login-intro {
    font-size: 18px;
  }
  .login-symbol {
    margin-bottom: 22px;
  }
  .portal-kicker {
    font-size: 13px;
  }
  .client-main {
    padding: 30px 18px 24px;
  }
  .client-greeting h1 {
    font-size: 40px;
  }
  .client-greeting > p:last-child {
    font-size: 19px;
  }
  .client-signout {
    font-size: 17px;
    padding-inline: 14px;
    min-height: 50px;
  }
  .client-tabs button {
    font-size: 17px;
    min-height: 60px;
  }
  .next-label {
    padding: 18px 22px;
  }
  .next-label h2 {
    font-size: 19px;
  }
  .simple-visit.featured {
    padding: 25px 22px;
  }
  .simple-visit {
    padding: 24px 22px;
  }
  .simple-visit h3 {
    font-size: 24px;
  }
  .featured .simple-time {
    font-size: 26px;
  }
  .simple-time {
    font-size: 23px;
  }
  .client-help-card {
    padding: 24px 22px;
  }
  .client-help-card button {
    width: 100%;
    justify-content: space-between;
  }
  .client-mode .dialog-actions {
    flex-direction: column-reverse;
  }
  .client-mode .dialog-actions button {
    width: 100%;
    margin: 0 !important;
  }
  .client-mode dialog {
    padding: 22px;
  }
  .client-mode .dialog-head .eyebrow {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .portal-header {
    padding-inline: 14px;
  }
  .login-card {
    padding: 24px 18px;
  }
  .client-main {
    padding-inline: 14px;
  }
  .client-tabs button {
    font-size: 16px;
  }
  .featured .simple-time {
    font-size: 23px;
  }
}
/* Live local backend integration: readable verification/policy and request states. */
#code-form label {
  display: block;
  font-size: 19px;
  font-weight: 600;
  margin: 22px 0 12px;
}
#email-code {
  width: 100%;
  font-size: 28px;
  letter-spacing: 8px;
  min-height: 64px;
  padding: 12px 18px;
}
.policy-text {
  border: 1px solid #d2dade;
  border-radius: 10px;
  padding: 20px;
  background: #f7f9fa;
}
.policy-text h2 {
  font-size: 21px;
  margin: 14px 0;
}
.policy-text p {
  white-space: pre-wrap;
  font-size: 18px;
  line-height: 1.7;
  color: #3d4e57;
}
.policy-text h2:first-child {
  margin-top: 0;
}
.client-refresh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 24px;
}
.client-refresh button {
  font-size: 18px;
  min-height: 52px;
}
.client-refresh span {
  font-size: 16px;
  color: #42555e;
}
.nurse-filter {
  display: block;
  font-size: 18px;
  margin-bottom: 24px;
}
.nurse-filter select {
  display: block;
  width: 100%;
  min-height: 56px;
  font-size: 18px;
  margin-top: 10px;
}
.period-controls {
  padding: 20px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.period-controls p {
  width: 100%;
  font-size: 16px;
  line-height: 1.6;
}
.period-controls button {
  font-size: 18px;
  min-height: 52px;
}
.client-main .notice {
  font-size: 18px;
}
.simple-time {
  overflow-wrap: anywhere;
}
.simple-visit .portal-kicker {
  font-size: 16px;
}
.verification-details code {
  overflow-wrap: anywhere;
  overflow-wrap: anywhere;
}
.settings-section {
  margin-top: 22px;
}
.login-card #policy-form .checkbox-row {
  font-size: 18px !important;
}
.login-card #policy-form input {
  width: 24px;
  height: 24px;
  min-height: 24px;
}
.form-error {
  white-space: normal;
}
button:disabled {
  opacity: 0.55;
}
.visit-time {
  font-size: 12px;
}
.visit strong {
  font-size: 14px;
}
@media (max-width: 700px) {
  .calendar-scroll .week-grid {
    min-width: 0;
    display: block;
  }
  .calendar-scroll .day-column {
    border: 0;
    border-bottom: 1px solid #dce3e6;
  }
  .calendar-scroll .day-header {
    height: auto;
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
  }
  .calendar-scroll .day-header strong {
    margin: 0;
    font-size: 20px;
  }
  .calendar-scroll .day-visits {
    min-height: 0;
    padding: 0 16px 18px;
  }
  .calendar-scroll .visit {
    min-height: 100px;
    font-size: 14px;
    padding: 16px;
  }
  .calendar-scroll .visit-time,
  .calendar-scroll .visit-nurse {
    font-size: 14px;
  }
  .client-refresh {
    align-items: flex-start;
  }
  .featured .simple-time {
    font-size: 25px;
  }
}

/* Nest brand: white surfaces, muted sage-blue accents and readable dark text. */
:root {
  --sage-blue: #496674;
  --accent: #dce7eb;
  --muted: #536b77;
  --line: #dce5e9;
  color: #293f4a;
  background: #fff;
}
body,
.login-page,
.client-portal {
  background: #fff;
}
.portal-header,
.sidebar {
  background: #dce7eb;
  color: #293f4a;
}
.portal-demo,
.portal-header .portal-brand,
.portal-header .portal-brand small {
  color: #496674;
}
.client-signout {
  color: #293f4a;
  border-color: #829da9;
  background: #fff;
}
.sidebar .workspace-label,
.sidebar .nav-item {
  color: #405d6b;
}
.sidebar .nav-item.active {
  background: #fff;
  color: #293f4a;
}
.sidebar .nav-item:hover {
  background: #edf2f4;
}
.login-card {
  box-shadow: 0 8px 32px #4966740a;
}
.next-label {
  background: #dce7eb;
  color: #293f4a;
}
.next-visit {
  border-color: #829da9;
}
.client-help-card {
  background: #f0f5f7;
  border-color: #dce5e9;
}
h1,
h2 {
  font-weight: 600;
}

#demo-account {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  margin: 8px 0 24px;
  background: #f0f5f7;
  color: #293f4a;
  border: 1px solid #cbd9e0;
  border-radius: 6px;
}

.view-switch {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin: 20px 0 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f0f5f7;
}
.view-switch button {
  flex: 1;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #405d6b;
  font-size: 18px;
  font-weight: 600;
}
.view-switch button[aria-pressed="true"] {
  background: #496674;
  color: white;
}
.client-calendar {
  border: 1px solid #cbd9e0;
  border-radius: 16px;
  padding: 20px;
  background: white;
}
.month-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.month-controls h2 {
  font-size: 23px;
  margin: 0;
  text-align: center;
}
.month-controls button {
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
}
.month-today {
  display: block;
  margin: 12px auto;
}
.calendar-instructions,
.calendar-key {
  color: #536b77;
  font-size: 16px;
  line-height: 1.5;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.weekday {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
}
.month-day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 64px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #293f4a;
  background: #f3f7f8;
  font-size: 18px;
}
.month-day.outside-month {
  background: white;
  color: #677d87;
}
.month-day[aria-current="date"] {
  border-color: #496674;
  font-weight: 700;
}
.month-day[aria-pressed="true"] {
  background: #496674;
  color: white;
}
.day-mark {
  height: 18px;
  min-width: 18px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 10px;
}
.has-visits {
  background: #dce7eb;
  color: #293f4a;
  font-weight: 700;
}
.only-cancelled {
  color: #9d4545;
}
.month-day[aria-pressed="true"] .only-cancelled {
  color: white;
}
.selected-day-visits {
  margin-top: 28px;
}
.selected-day-visits h2 {
  font-size: 23px;
  line-height: 1.4;
}
.day-empty {
  padding: 24px;
  background: #f0f5f7;
  border-radius: 12px;
  line-height: 1.5;
}
.demo-caption {
  font-size: 13px;
  color: #687d87;
}
@media (max-width: 440px) {
  .client-calendar {
    padding: 12px 8px;
  }
  .month-grid {
    gap: 3px;
  }
  .month-day {
    min-height: 60px;
  }
  .month-controls h2 {
    font-size: 21px;
  }
}

/* Original nest artwork with a text wordmark that stays crisp at any density. */
.company-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 188px;
  height: 76px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #6aa98f;
  color: #f4f0e7;
}
.company-mark {
  display: block;
  position: relative;
  overflow: hidden;
  width: 48px;
  height: 56px;
  flex-shrink: 0;
}
.company-mark img {
  position: absolute;
  width: 320px !important;
  height: 320px !important;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45.2%);
}
.company-wordmark {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.company-wordmark > span:first-child {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 1;
}
.company-wordmark > span:last-child {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.8px;
  line-height: 1;
  white-space: nowrap;
}
.portal-brand {
  gap: 0;
}
.sidebar .brand {
  padding: 0 0 32px;
}
.portal-header {
  gap: 12px;
}
@media (max-width: 360px) {
  .company-lockup {
    width: 174px;
    gap: 8px;
    padding-inline: 8px;
  }
  .portal-header {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Nurse navigation reuses the workspace shell without administrative actions. */
.nurse-sidebar {
  width: 244px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}
.nurse-content {
  margin-left: 244px;
  min-height: 100vh;
}
.nurse-content .client-main {
  margin: 0 auto;
}
.nurse-content .portal-header {
  padding-left: 32px;
  padding-right: 32px;
  min-height: 80px;
  justify-content: flex-end;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nurse-content .portal-header .portal-brand {
  display: none;
}
.nurse-sidebar .workspace-label {
  display: block;
}
.nurse-sidebar nav {
  display: block;
}
.nurse-sidebar .sidebar-bottom {
  display: block;
  margin-top: auto;
}
@media (max-width: 700px) {
  .nurse-sidebar {
    display: none;
  }
  .nurse-content {
    margin-left: 0;
    padding-bottom: 90px;
  }
  .nurse-content .portal-header {
    padding-left: 20px;
    padding-right: 20px;
    background: #dce7eb;
    justify-content: space-between;
  }
  .nurse-content .portal-header .portal-brand {
    display: flex;
  }
  .nurse-mobile-nav .nav-item {
    min-height: 52px;
    font-size: 15px;
  }
}

.visit-patient {
  margin: 0 0 20px;
}
.visit-patient > span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #536b77;
  margin-bottom: 6px;
}
.visit-patient > p {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.25;
  color: #293f4a;
}

/* Appointment detail popup */
dialog:has(.appointment-summary) {
  padding: 28px;
  border-radius: 22px;
}
.appointment-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.appointment-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 16px;
  background: #eaf0f1;
  color: #496773;
}
.appointment-symbol .icon {
  width: 26px;
  height: 26px;
}
.appointment-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.appointment-heading h2 {
  font-weight: 650;
  font-size: 28px;
}
.appointment-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
  padding: 6px 11px;
  border-radius: 100px;
  background: #eaf3ee;
  color: #38614d;
  font-size: 13px;
  font-weight: 600;
}
.appointment-status .icon {
  width: 15px;
  height: 15px;
}
.appointment-status.is-cancelled {
  background: #faeeee;
  color: #943d3d;
}
.appointment-facts {
  margin: 0;
  padding: 4px 20px;
  border: 1px solid #e3eaed;
  border-radius: 16px;
  background: #f5f8f8;
}
.appointment-facts > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
}
.appointment-facts > div + div {
  border-top: 1px solid #e1e8eb;
}
.appointment-facts > div > .icon {
  color: #607e88;
  width: 20px;
  flex-shrink: 0;
}
.appointment-facts dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 5px;
}
.appointment-facts dt span {
  margin-left: 6px;
  font-size: 12px;
}
.appointment-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.5;
}
.appointment-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.appointment-actions button {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
}
.appointment-actions .danger-text {
  border-color: transparent;
  background: transparent;
}
.appointment-actions .danger-text:hover {
  background: #fcf2f2;
}
@media (max-width: 480px) {
  dialog:has(.appointment-summary) {
    padding: 20px;
  }
  .appointment-heading {
    gap: 12px;
    margin-top: 16px;
  }
  .appointment-heading h2 {
    font-size: 26px;
  }
  .appointment-facts {
    padding-inline: 16px;
  }
}

.invite-availability {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f1f5f6;
  color: #546a75;
  font-size: 14px;
  line-height: 1.6;
}
.invite-submit:disabled {
  background: #e5eaed;
  border-color: #e5eaed;
  color: #75828a;
  opacity: 1;
  cursor: not-allowed;
}
#invite-viewer-calendar > label {
  display: block;
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 600;
}

#contact-template label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 600;
}
#contact-template input,
#contact-template textarea {
  display: block;
  width: 100%;
  font: inherit;
}
#contact-template textarea {
  resize: vertical;
  line-height: 1.5;
}
#contact-email-link {
  text-decoration: none;
}
