.leak-card {
  border-color: #efc86f;
  background: #fffaf0;
}

.patient-hero-kicker {
  color: #c7e3ec;
}

.patient-hero-copy {
  margin: 0;
  color: #d9eef4;
}

.section-rule {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.compact-copy {
  margin: 2px 0;
}

.progress-note-input {
  width: 100%;
  min-height: 105px;
  margin-top: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dicom-viewport {
  height: 240px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #152434, #607488);
  color: #e3edf4;
  text-align: center;
}

.dicom-label {
  font-size: 40px;
}

.dicom-copy {
  color: #d8e4eb;
}

.skill-lifecycle {
  line-height: 2;
}

.table-scroll {
  overflow: auto;
}

.connector-title {
  color: var(--ink);
}

.progress,
.dwell {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
}

.progress::-webkit-progress-bar,
.dwell::-webkit-progress-bar {
  border-radius: 99px;
  background: #e5edf3;
}

.progress::-webkit-progress-value,
.dwell::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  transition: width .35s;
}

.progress::-moz-progress-bar,
.dwell::-moz-progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--mint));
}

.sched-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.sched-date-control,
.sched-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sched-date-control > div {
  min-width: 220px;
  text-align: center;
}

.sched-date-control strong,
.sched-date-control small {
  display: block;
}

.sched-date-control strong {
  font-size: 12px;
}

.sched-date-control small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.sched-arrow {
  width: 39px;
  padding: 0;
  font-size: 20px;
}

.sched-controls {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sched-segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f3f7fa;
}

.sched-segmented button {
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.sched-segmented button.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 7px rgba(8, 45, 73, .12);
}

.sched-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
}

.sched-jump input,
#sched-location {
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 9px;
  font-size: 9px;
  font-weight: 750;
}

.sched-alerts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.sched-alerts > button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  box-shadow: 0 5px 16px rgba(20, 43, 67, .05);
}

.sched-alerts > button:hover {
  border-color: #8bc7c9;
}

.sched-alerts > button > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.sched-alerts strong,
.sched-alerts small {
  display: block;
}

.sched-alerts strong {
  font-size: 10px;
}

.sched-alerts small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.sched-alerts b {
  color: var(--teal);
  font-size: 9px;
  white-space: nowrap;
}

.sched-alert-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 950;
}

.sched-board {
  overflow: hidden;
}

.sched-day-scroll,
.sched-week-scroll,
.sched-month-scroll {
  overflow-x: auto;
}

.sched-day-grid {
  display: grid;
  grid-template-columns: 78px repeat(3, minmax(220px, 1fr));
  min-width: 800px;
}

.sched-corner,
.sched-lane-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fbfd;
}

.sched-corner {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.sched-corner strong,
.sched-corner span {
  display: block;
}

.sched-corner strong {
  font-size: 9px;
  text-transform: uppercase;
}

.sched-corner span {
  color: var(--muted);
  font-size: 8px;
}

.sched-lane-head > span:last-child {
  min-width: 0;
}

.sched-lane-head strong,
.sched-lane-head small {
  display: block;
}

.sched-lane-head strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sched-lane-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.sched-hour {
  min-height: 76px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: right;
}

.sched-hour strong {
  font-size: 8px;
}

.sched-slot {
  min-height: 76px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 36px, #f7fafc 37px);
}

.sched-appt {
  position: relative;
  min-width: 0;
  padding: 7px 28px 7px 8px;
  border: 1px solid #c5ddec;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: #edf6ff;
  text-align: left;
}

.sched-appt.confirmed {
  border-color: #a5e2da;
  border-left-color: var(--teal);
  background: #eaf9f7;
}

.sched-appt.arrived {
  border-color: #b9e4c9;
  border-left-color: #28a46d;
  background: #ecf8ef;
}

.sched-appt strong,
.sched-appt span,
.sched-appt small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sched-appt strong {
  font-size: 9px;
}

.sched-appt span,
.sched-appt small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.sched-appt b {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--amber2);
  color: var(--amber);
  font-size: 9px;
}

.sched-open {
  min-height: 62px;
  border: 1px dashed #c3d0dc;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #8292a4;
  font-size: 8px;
  font-weight: 850;
}

.sched-open:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: #f1fbfa;
}

.sched-week-grid {
  min-width: 980px;
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
}

.sched-week-day {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 0 7px 9px;
  border-right: 1px solid var(--line);
}

.sched-week-day.today {
  background: #effaf9;
  box-shadow: inset 0 3px 0 var(--teal);
}

.sched-week-head {
  width: calc(100% + 14px);
  min-height: 72px;
  margin: 0 -7px 9px;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #f8fbfd;
  text-align: center;
}

.sched-week-day.today .sched-week-head {
  background: #e5f7f5;
}

.sched-week-head strong,
.sched-week-head span,
.sched-week-head small {
  display: block;
}

.sched-week-head strong {
  font-size: 10px;
}

.sched-week-head span {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 900;
}

.sched-week-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.sched-week-list {
  display: grid;
  align-content: start;
  gap: 6px;
  flex: 1;
}

.sched-week-appt {
  position: relative;
  display: block;
  padding: 8px;
  border: 1px solid #c5ddec;
  border-radius: 8px;
  background: #edf6ff;
  text-align: left;
}

.sched-week-appt time,
.sched-week-appt strong,
.sched-week-appt span {
  display: block;
}

.sched-week-appt time {
  color: var(--blue);
  font-size: 7px;
  font-weight: 850;
}

.sched-week-appt strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sched-week-appt span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.sched-week-appt b {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--amber2);
  color: var(--amber);
  font-size: 6px;
}

.sched-day-add {
  min-height: 34px;
  margin-top: 8px;
  border: 1px dashed #a9bbc9;
  border-radius: 8px;
  background: transparent;
  color: var(--teal);
  font-size: 8px;
  font-weight: 850;
}

.sched-empty {
  padding: 18px 6px;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.sched-month-grid {
  min-width: 820px;
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.sched-month-head {
  padding: 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fbfd;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
}

.sched-month-day {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 9px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.sched-month-day:hover {
  background: #f1fbfa;
}

.sched-month-day.outside {
  color: #9cabb8;
  background: #f8fafb;
}

.sched-month-day.today {
  background: #e9f8f6;
  box-shadow: inset 0 0 0 2px var(--teal);
}

.sched-month-day strong {
  font-size: 11px;
}

.sched-month-day span,
.sched-month-day small {
  color: var(--muted);
  font-size: 8px;
}

.sched-month-day b {
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--amber2);
  color: var(--amber);
  font-size: 7px;
}

.sched-detail {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(380px, 1.5fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 15px 16px;
  border-radius: 15px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 32px rgba(8, 45, 73, .17);
}

.sched-detail h2,
.sched-detail p {
  margin: 0;
}

.sched-detail h2 {
  margin-top: 5px;
  font-size: 15px;
}

.sched-detail p {
  margin-top: 3px;
  color: #b7d0de;
  font-size: 8px;
}

.sched-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sched-detail-facts > span {
  min-width: 0;
  padding: 4px 9px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.sched-detail-facts small,
.sched-detail-facts strong {
  display: block;
}

.sched-detail-facts small {
  color: #91afbf;
  font-size: 7px;
  text-transform: uppercase;
}

.sched-detail-facts strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sched-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.sched-detail-actions .btn {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.sched-detail-actions .btn.teal {
  border-color: var(--teal);
  background: var(--teal);
}

.sched-detail-risk {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

.sched-detail-risk > b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--amber2);
  color: var(--amber);
}

.sched-detail-risk > span {
  flex: 1;
}

.sched-detail-risk strong,
.sched-detail-risk small {
  display: block;
}

.sched-detail-risk strong {
  font-size: 9px;
}

.sched-detail-risk small {
  margin-top: 2px;
  color: #b7d0de;
  font-size: 8px;
}

@media (max-width: 1180px) {
  .sched-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sched-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .sched-detail {
    grid-template-columns: 1fr 1.5fr;
  }

  .sched-detail-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .sched-date-control {
    width: 100%;
  }

  .sched-date-control > div {
    min-width: 0;
    flex: 1;
  }

  .sched-controls {
    align-items: stretch;
  }

  .sched-jump {
    flex: 1 1 190px;
  }

  .sched-jump input,
  #sched-location {
    flex: 1;
  }

  .sched-alerts {
    grid-template-columns: 1fr;
  }

  .sched-detail {
    grid-template-columns: 1fr;
  }

  .sched-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sched-detail-risk {
    grid-column: 1;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .sched-date-control [data-sched-today] {
    display: none;
  }

  .sched-controls > .btn.primary {
    width: 100%;
  }
}

/* Clinician-owned schedule: personal shifts plus assigned patient visits. */
.my-next {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 190px;
  background: linear-gradient(135deg, #f5fbff, #eefaf7);
}

.my-next > .eye {
  position: absolute;
  align-self: flex-start;
}

.my-next-date {
  width: 92px;
  min-width: 92px;
  height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid #bcdde0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(18, 83, 105, .08);
}

.my-next-date span,
.my-next-date small {
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.my-next-date strong {
  margin: 3px 0;
  color: var(--navy);
  font-size: 35px;
  line-height: 1;
}

.my-next h2,
.my-next p {
  margin: 0;
}

.my-next h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.my-next p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.my-arrive {
  display: inline-flex;
  margin-top: 13px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--mint2);
  color: #176c58;
  font-size: 8px;
  font-weight: 900;
}

.my-schedule {
  overflow: hidden;
}

.my-schedule-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px 15px;
  border-bottom: 1px solid var(--line);
}

.my-schedule-title h2,
.my-schedule-title p {
  margin: 0;
}

.my-schedule-title h2 {
  margin-top: 3px;
  font-size: 17px;
}

.my-schedule-title p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.my-schedule-title > div:last-child {
  white-space: nowrap;
}

.my-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.my-date-control,
.my-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-date-control > div {
  min-width: 205px;
}

.my-date-control strong,
.my-date-control small {
  display: block;
}

.my-date-control strong {
  color: var(--navy);
  font-size: 11px;
}

.my-date-control small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.my-calendar {
  background: #f7fafc;
}

.my-calendar-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.my-week-grid {
  min-width: 980px;
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
}

.my-week-day {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #fff;
}

.my-week-day:last-child {
  border-right: 0;
}

.my-week-day.today {
  background: #f3fbfa;
  box-shadow: inset 0 3px var(--teal);
}

.my-week-head {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 7px;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.my-week-head strong {
  font-size: 9px;
  text-transform: uppercase;
}

.my-week-head span {
  font-size: 10px;
  font-weight: 900;
}

.my-week-head b {
  grid-column: 1 / -1;
  color: var(--teal);
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.my-week-shift {
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #eef9f7;
}

.my-week-shift.off {
  background: #f6f8fa;
  color: var(--muted);
}

.my-week-shift small {
  color: var(--teal);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.my-week-shift.off small {
  color: var(--muted);
}

.my-week-shift strong {
  font-size: 9px;
}

.my-week-shift span {
  color: var(--muted);
  font-size: 8px;
}

.my-week-visits {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 205px;
  padding: 8px;
}

.my-week-visits button {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid #cbdfe9;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: #f7fbff;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.my-week-visits time {
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
}

.my-week-visits strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-week-visits span,
.my-no-visits {
  color: var(--muted);
  font-size: 7px;
}

.my-no-visits {
  padding: 8px 3px;
  text-align: center;
}

.my-month-grid {
  min-width: 840px;
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.my-month-head {
  padding: 9px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #edf4f8;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.my-month-day {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 9px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.my-month-day.outside {
  background: #f7f9fb;
  color: #91a0ac;
}

.my-month-day.today {
  background: #effaf8;
  box-shadow: inset 0 0 0 2px var(--teal);
}

.my-month-day > strong {
  font-size: 12px;
}

.my-month-day > span,
.my-month-day > small {
  font-size: 7px;
}

.my-month-day > span {
  color: var(--teal);
  font-weight: 900;
}

.my-month-day > span.off,
.my-month-day > small {
  color: var(--muted);
  font-weight: 700;
}

.my-month-day > b {
  margin-top: auto;
  color: var(--blue);
  font-size: 8px;
}

.my-day {
  display: grid;
  grid-template-columns: minmax(235px, .7fr) minmax(0, 1.3fr);
  gap: 12px;
  padding: 14px;
}

.my-shift {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border: 1px solid #bcded8;
  border-radius: 13px;
  background: linear-gradient(135deg, #eaf8f5, #f8fcfb);
}

.my-shift.off {
  border-color: var(--line);
  background: #f5f7f9;
}

.my-shift-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--teal);
  color: #fff;
  font-size: 17px;
}

.my-shift.off .my-shift-icon {
  background: #c9d2d9;
}

.my-shift > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.my-shift small,
.my-shift strong,
.my-shift b {
  display: block;
}

.my-shift small,
.my-shift b {
  color: var(--muted);
  font-size: 8px;
}

.my-shift strong {
  margin: 3px 0;
  font-size: 13px;
}

.my-agenda {
  padding: 8px 12px 12px;
}

.my-agenda > button {
  width: 100%;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.my-agenda time {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
}

.my-agenda strong,
.my-agenda small {
  display: block;
}

.my-agenda strong {
  font-size: 9px;
}

.my-agenda small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.my-detail {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(110px, 1fr)) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid #bdd8e8;
  background: #eef7fc;
}

.my-detail h3,
.my-detail p {
  margin: 0;
}

.my-detail h3 {
  margin-top: 3px;
  font-size: 13px;
}

.my-detail p,
.my-detail small,
.my-detail strong {
  display: block;
}

.my-detail p,
.my-detail small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.my-detail strong {
  margin-top: 3px;
  font-size: 9px;
}

@media (max-width: 1050px) {
  .my-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-controls {
    width: 100%;
  }

  .my-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 670px) {
  .my-next {
    min-height: 175px;
  }

  .my-schedule-title {
    flex-direction: column;
  }

  .my-toolbar,
  .my-schedule-title {
    padding-inline: 12px;
  }

  .my-date-control {
    width: 100%;
  }

  .my-date-control > div {
    min-width: 0;
    flex: 1;
  }

  .my-date-control [data-my-today] {
    display: none;
  }

  .my-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .my-day {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .my-detail {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .my-agenda > button {
    grid-template-columns: 65px minmax(0, 1fr);
  }

  .my-agenda > button .badge {
    grid-column: 2;
    justify-self: start;
  }
}

/* Add Patient offline continuity camera intake. */
.camera-intake {
  margin-bottom: 13px;
  overflow: hidden;
  border-color: #bcdce5;
}

.camera-intake.active {
  border-color: #82c8c0;
  box-shadow: 0 12px 32px rgba(24, 116, 115, .1);
}

.camera-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 0;
  background: linear-gradient(90deg, #f3fbff, #effbf7);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.camera-pill:hover {
  background: linear-gradient(90deg, #eaf8fe, #e6f8f2);
}

.camera-pill-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 7px 18px rgba(17, 120, 116, .2);
}

.camera-pill > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.camera-pill strong,
.camera-pill small {
  display: block;
}

.camera-pill strong {
  font-size: 11px;
}

.camera-pill small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.camera-reader {
  display: grid;
  grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr);
  border-top: 1px solid #c6e1e4;
  background: #fff;
}

.camera-preview {
  min-height: 295px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(54, 162, 156, .25), transparent 32%),
    linear-gradient(145deg, #102d3c, #071d2a);
  color: #fff;
  text-align: center;
}

.camera-preview.recognized {
  background:
    radial-gradient(circle at 50% 30%, rgba(104, 224, 188, .35), transparent 34%),
    linear-gradient(145deg, #123c3d, #09292d);
}

.camera-reticle {
  position: relative;
  width: 166px;
  height: 166px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 17px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .08);
}

.camera-reticle::before,
.camera-reticle::after {
  position: absolute;
  width: 28px;
  height: 28px;
  content: '';
}

.camera-reticle::before {
  top: -3px;
  left: -3px;
  border-top: 5px solid #59e3cf;
  border-left: 5px solid #59e3cf;
  border-radius: 8px 0 0;
}

.camera-reticle::after {
  right: -3px;
  bottom: -3px;
  border-right: 5px solid #59e3cf;
  border-bottom: 5px solid #59e3cf;
  border-radius: 0 0 8px;
}

.camera-reticle i {
  position: absolute;
  top: 20px;
  right: 13px;
  left: 13px;
  height: 2px;
  background: #59e3cf;
  box-shadow: 0 0 12px #59e3cf;
  animation: camera-scan 2.2s ease-in-out infinite alternate;
}

.camera-preview.recognized .camera-reticle i {
  display: none;
}

.camera-reticle span {
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  opacity: .9;
}

.camera-preview b,
.camera-preview small {
  display: block;
}

.camera-preview b {
  font-size: 10px;
}

.camera-preview small {
  max-width: 290px;
  color: #bdd4df;
  font-size: 8px;
  line-height: 1.5;
}

@keyframes camera-scan {
  from { transform: translateY(0); }
  to { transform: translateY(110px); }
}

.camera-side {
  position: relative;
  display: grid;
  align-content: center;
  padding: 24px;
}

.camera-side h3,
.camera-side p {
  margin: 0;
}

.camera-side h3 {
  margin-top: 4px;
  font-size: 16px;
}

.camera-side p {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.camera-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.camera-packet {
  padding-top: 12px;
}

.camera-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.camera-facts > span {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfd;
}

.camera-facts small,
.camera-facts strong {
  display: block;
}

.camera-facts small {
  color: var(--muted);
  font-size: 7px;
}

.camera-facts strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}

.camera-checks span {
  padding: 8px;
  border-radius: 8px;
  background: var(--mint2);
  color: #176e57;
  font-size: 8px;
  font-weight: 800;
}

.camera-accepted {
  padding: 10px;
  border: 1px solid #b9dfd2;
  border-radius: 9px;
  background: #effaf6;
  color: #176e57 !important;
  font-weight: 800;
}

@media (max-width: 850px) {
  .camera-reader {
    grid-template-columns: 1fr;
  }

  .camera-preview {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .camera-pill {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .camera-pill .badge {
    margin-left: 52px;
  }

  .camera-preview,
  .camera-side {
    padding: 18px 14px;
  }

  .camera-facts,
  .camera-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .camera-close {
    position: static;
    margin-top: 12px;
  }
}

/* Clinician phone pill and verified doctor/employee directory. */
.phone-dock {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 70;
}

.phone-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 12px 9px 9px;
  border: 1px solid #82c9bf;
  border-radius: 999px;
  background: linear-gradient(135deg, #0c8179, #126f84);
  color: #fff;
  box-shadow: 0 14px 34px rgba(5, 54, 72, .28);
  cursor: pointer;
}

.phone-pill > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .17);
  font-size: 16px;
}

.phone-pill > span:nth-child(2) {
  min-width: 92px;
  text-align: left;
}

.phone-pill strong,
.phone-pill small {
  display: block;
}

.phone-pill strong {
  font-size: 10px;
}

.phone-pill small {
  margin-top: 2px;
  color: #cfeeed;
  font-size: 7px;
}

.phone-pill > b {
  min-width: 23px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  color: #0c756e;
  font-size: 8px;
  text-align: center;
}

.phone-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(570px, calc(100vw - 44px));
  max-height: min(690px, calc(100vh - 105px));
  overflow: hidden;
  border: 1px solid #bdd8e2;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 38, 55, .32);
}

.phone-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f3fbff, #eefaf7);
}

.phone-panel-head h2,
.phone-panel-head p {
  margin: 0;
}

.phone-panel-head h2 {
  margin-top: 3px;
  font-size: 17px;
}

.phone-panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.phone-filters {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.phone-filters button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}

.phone-filters button.active {
  border-color: var(--teal);
  background: var(--mint2);
  color: var(--teal);
}

.phone-list {
  max-height: min(430px, calc(100vh - 310px));
  overflow-y: auto;
  padding: 4px 14px;
}

.phone-contact {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.phone-contact:last-child {
  border-bottom: 0;
}

.phone-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue2);
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
}

.phone-copy,
.phone-copy strong,
.phone-copy small,
.phone-copy b {
  display: block;
  min-width: 0;
}

.phone-copy strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-copy b {
  margin-top: 4px;
  color: #17735d;
  font-size: 7px;
}

.phone-number {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.phone-actions {
  display: flex;
  gap: 5px;
}

.phone-actions .btn {
  min-width: 57px;
  justify-content: center;
  text-decoration: none;
}

.phone-safety {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid #c3e0d7;
  background: #effaf6;
}

.phone-safety > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #ccefe2;
  color: #147155;
  font-size: 9px;
  font-weight: 900;
}

.phone-safety p {
  margin: 0;
  color: #416b61;
  font-size: 7px;
  line-height: 1.5;
}

@media (max-width: 670px) {
  .phone-dock {
    right: 10px;
    bottom: 10px;
  }

  .phone-panel {
    right: 0;
    bottom: 60px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 90px);
  }

  .phone-list {
    max-height: calc(100vh - 330px);
  }

  .phone-contact {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 7px 10px;
  }

  .phone-number {
    grid-column: 2;
  }

  .phone-actions {
    grid-column: 2;
  }

  .phone-actions .btn {
    flex: 1;
  }
}

/* Restored patient pre-check surfaces from the earlier R6.1 patient flow. */
.patient-intake-menu {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.patient-intake-menu .complete {
  width: 100%;
  margin: 0;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.patient-intake-menu .complete:hover {
  border-color: #98c4cf;
  background: #f7fbfc;
}

.patient-intake-menu .complete > b {
  color: var(--teal);
  font-size: 18px;
}

.patient-intake-screen {
  min-width: 0;
}

.patient-intake-back {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.patient-intake-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.patient-intake-head h2 {
  margin: 4px 0;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.patient-intake-head p,
.patient-card-capture p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.patient-intake-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.patient-intake-screen .field input,
.patient-intake-screen .field select,
.patient-intake-screen .field textarea {
  min-width: 0;
  font-size: 11px;
}

.patient-question {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.patient-question legend {
  padding: 0 5px;
  color: #51667b;
  font-size: 9px;
  font-weight: 900;
}

.patient-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.patient-check-grid label,
.patient-consents label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #3f566c;
  font-size: 9px;
  line-height: 1.35;
}

.patient-check-grid input,
.patient-consents input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--teal);
}

.patient-coverage-note {
  display: grid;
  gap: 3px;
  margin-bottom: 11px;
  padding: 10px;
  border: 1px solid #e5c26f;
  border-radius: 11px;
  background: var(--amber2);
  color: #6d4c12;
}

.patient-coverage-note strong {
  font-size: 10px;
}

.patient-coverage-note span {
  font-size: 8px;
  line-height: 1.4;
}

.patient-card-capture {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.patient-card-capture h3 {
  margin: 0 0 4px;
  font-size: 12px;
}

.patient-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.patient-card-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fafc;
}

.patient-card-side.captured {
  border-color: #7bc8ad;
  background: #f2fbf7;
}

.patient-card-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
}

.patient-card-preview > span {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--blue2);
  color: var(--blue);
  font-weight: 900;
}

.patient-card-side.captured .patient-card-preview > span {
  background: var(--mint2);
  color: #137253;
}

.patient-card-preview strong,
.patient-card-preview small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.patient-card-preview strong {
  font-size: 9px;
}

.patient-card-preview small {
  color: var(--muted);
  font-size: 7px;
}

.patient-card-side label.btn {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0 7px;
  font-size: 8px;
}

.patient-card-side label.btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.patient-card-side > button {
  min-width: 0;
  padding: 0 7px;
  font-size: 8px;
}

.patient-private {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.patient-review,
.patient-consents {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
}

.patient-review > div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafc;
}

.patient-review strong {
  font-size: 9px;
}

.patient-review span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.patient-consents {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7fafc;
}

.patient-intake-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
