:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #173c37;
  background: #f8f8f4;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
.top {
  max-width: 860px;
  margin: 0 auto;
  padding: 23px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand {
  color: #173c37;
  text-decoration: none;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}
.brand span {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 7px;
  font-weight: 400;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.top nav a {
  color: #245d50;
  text-underline-offset: 4px;
}
.top nav button {
  border: 1px solid #dde4dd;
  background: white;
  border-radius: 9px;
  padding: 10px;
  color: #245d50;
  min-height: 42px;
}
main {
  width: min(100%, 500px);
  margin: 15px auto 50px;
  padding: 0 22px;
}
.title {
  margin: 25px 0 28px;
}
h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 16px;
}
p {
  line-height: 1.5;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #6d7c77;
  font-weight: bold;
  margin: 0;
}
#environment-label[data-environment='production'] {
  color: #8a421c;
  background: #fff0dc;
  padding: 10px 12px;
  border: 1px solid #e7c59a;
  border-radius: 8px;
}
.muted {
  color: #6d7c77;
}
.small {
  font-size: 12px;
  line-height: 1.5;
}
.section {
  margin: 28px 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.section-title h1,
.section-title h2 {
  margin: 0;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
label {
  display: block;
  font-size: 12px;
  color: #6d7c77;
  margin-bottom: 15px;
  min-width: 0;
}
input,
select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 15px 13px;
  border: 1px solid #dde4dd;
  border-radius: 12px;
  background: white;
  color: #173c37;
  min-height: 52px;
  margin-top: 8px;
  font-size: 16px;
}
input:focus,
select:focus {
  outline: 2px solid #70a08b;
  outline-offset: 2px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.service-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.service-row select {
  margin: 0;
  flex: 1;
}
.service-picker {
  position: relative;
  flex: 1;
  min-width: 0;
}
.service-picker input {
  margin: 0;
}
.service-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: white;
  border: 1px solid #dde4dd;
  border-radius: 10px;
  z-index: 5;
  box-shadow: 0 5px 15px #173c3720;
}
.service-row .service-option {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  padding: 12px;
  color: #173c37;
  border-bottom: 1px solid #eff1ed;
  white-space: normal;
  overflow-wrap: anywhere;
}
.service-option:hover,
.service-option[aria-selected='true'] {
  background: #eaf2eb;
}
.service-results p {
  font-size: 13px;
  padding: 0 12px;
}
.service-group {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #245d50;
  background: #eaf2eb;
  position: sticky;
  top: 0;
}
.override-panel {
  margin: 25px 0;
  border: 1px solid #e8d8ad;
  border-radius: 12px;
  padding: 14px;
  background: #fbf2dd;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #77591e;
  font-size: 14px;
}
.check-label input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin: 0;
}
.service-row button {
  background: transparent;
  border: 0;
  min-width: 44px;
  min-height: 48px;
  color: #8b4343;
  font-size: 22px;
}
.text-button {
  border: 0;
  padding: 8px 0;
  color: #245d50;
  background: transparent;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
}
.patient-type {
  margin: 25px 0;
}
.patient-type legend {
  font-size: 12px;
  color: #6d7c77;
  margin-bottom: 10px;
}
.segmented {
  display: flex;
  gap: 9px;
}
.segmented label {
  flex: 1;
  position: relative;
  margin: 0;
}
.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  min-height: 0;
  padding: 0;
}
.segmented span {
  display: block;
  text-align: center;
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid #dde4dd;
  background: white;
  padding: 13px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #173c37;
}
.segmented input:checked + span {
  background: #245d50;
  color: white;
  border-color: #245d50;
}
.segmented input:focus-visible + span {
  outline: 2px solid #70a08b;
  outline-offset: 2px;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.slot {
  min-height: 46px;
  border: 1px solid #dde4dd;
  border-radius: 10px;
  background: white;
  color: #173c37;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 3px;
}
.slot[aria-pressed='true'] {
  background: #245d50;
  color: white;
  border-color: #245d50;
}
.slot:disabled {
  background: #eff1ed;
  color: #8b968f;
  border-color: transparent;
  opacity: 1;
}
.primary {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #245d50;
  color: white;
  min-height: 52px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 16px;
}
.primary:hover:not(:disabled) {
  background: #194b40;
}
.primary:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a47726;
  outline-offset: 3px;
}
.compact {
  width: auto;
  font-size: 14px;
  white-space: nowrap;
}
.submit-area {
  margin-top: 12px;
}
.error {
  color: #9b3535;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}
.error:empty,
.notice:empty {
  display: none;
}
.warning {
  padding: 15px 16px;
  background: #fbf2dd;
  border: 1px solid #e8d8ad;
  border-radius: 12px;
  margin: 20px 0;
  color: #77591e;
  font-size: 12px;
}
.warning p {
  margin: 7px 0;
}
.panel {
  background: white;
  border: 1px solid #dde4dd;
  border-radius: 16px;
  padding: 22px;
}
.login {
  margin-top: 60px;
}
.login label {
  margin-top: 22px;
}
.success {
  text-align: center;
  padding-top: 35px;
}
.check {
  display: grid;
  place-items: center;
  background: #eaf2eb;
  color: #245d50;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 35px;
  margin: 5px auto 28px;
}
.success h1 {
  font-size: 27px;
}
.details {
  text-align: left;
  margin: 30px 0;
}
.details p {
  margin: 0 0 20px;
}
.details p:last-child {
  margin-bottom: 0;
}
.details span {
  display: block;
  color: #6d7c77;
  font-size: 12px;
  margin-bottom: 7px;
}
.details strong {
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.success > .primary {
  margin-top: 25px;
}
.users-list {
  display: grid;
  gap: 12px;
  margin: 25px 0;
}
.user-card {
  background: white;
  border: 1px solid #dde4dd;
  border-radius: 14px;
  padding: 18px;
}
.user-card strong {
  overflow-wrap: anywhere;
}
.user-card small {
  display: block;
  color: #6d7c77;
  margin: 7px 0 13px;
}
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.user-actions button {
  min-height: 44px;
  border: 1px solid #dde4dd;
  background: white;
  color: #245d50;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
}
.user-actions .danger {
  color: #9b3535;
}
.notice {
  color: #245d50;
  background: #eaf2eb;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
}
dialog {
  max-width: 460px;
  width: calc(100% - 32px);
  padding: 23px;
  border: 1px solid #dde4dd;
  border-radius: 16px;
  color: #173c37;
  background: #f8f8f4;
}
dialog::backdrop {
  background: #173c3755;
}
.close {
  background: transparent;
  border: 0;
  color: #6d7c77;
  font-size: 26px;
  min-width: 40px;
  min-height: 40px;
}
#slots-message {
  font-size: 13px;
  color: #6d7c77;
}
.login .primary {
  margin-top: 22px;
}
@media (max-width: 600px) {
  .top { flex-wrap: wrap; }
  .top nav { width: 100%; }
}
@media (max-width: 370px) {
  main {
    padding: 0 16px;
  }
  .top {
    padding: 20px 16px;
  }
  .top nav {
    gap: 7px;
    font-size: 12px;
  }
  .brand {
    font-size: 26px;
  }
  h1 {
    font-size: 25px;
  }
  .slot {
    font-size: 12px;
  }
}
