:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #263342;
  background: #f6f8fb;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --muted: #718093;
  --line: #dfe6ee;
  --blue: #527597;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #6a91b4;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.055em;
  margin-bottom: 12px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.04em;
  font-weight: 550;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 17px;
}
.brand {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -1px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.brand span {
  color: #899aad;
}
.auth {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  max-width: 1160px;
  margin: auto;
  padding: 65px 35px;
  gap: 80px;
}
.auth-art {
  position: relative;
  min-height: 440px;
  padding-top: 60px;
  isolation: isolate;
}
.auth-art > img {
  position: absolute;
  width: 650px;
  max-width: none;
  height: 430px;
  left: -170px;
  top: 80px;
  z-index: -1;
  object-fit: contain;
  opacity: 0.62;
  mix-blend-mode: multiply;
}
.auth-art h1 {
  font-size: 62px;
  line-height: 1.06;
  margin-top: 50px;
}
.auth-art h1 span {
  color: #7695b3;
}
.auth-card,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 30px #3c536b04;
}
.auth-card {
  padding: 36px;
  max-width: 440px;
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  margin-bottom: 20px;
}
.field > span {
  font-weight: 550;
}
.field small {
  font-weight: 400;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: #f7f9fc;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 12px;
  color: #263342;
  width: 100%;
}
textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.7;
}
.button {
  background: #263342;
  border: 1px solid #263342;
  color: white;
  border-radius: 9px;
  padding: 11px 16px;
  min-height: 39px;
  font-size: 11px;
  display: inline-flex;
  justify-content: center;
  gap: 7px;
  align-items: center;
}
.button.secondary {
  background: white;
  border-color: var(--line);
  color: #34475b;
}
.button.danger {
  color: #a54a57;
  background: #fff4f5;
  border-color: #ead2d6;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.auth-card .button {
  width: 100%;
}
.auth-foot {
  margin-top: 22px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}
.shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  padding: 33px 19px;
  background: #eef2f7;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  font-size: 22px;
  margin-bottom: 45px;
}
.sidebar .eyebrow {
  font-size: 8px;
  padding-left: 10px;
  color: var(--muted);
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 13px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar nav button.active {
  background: white;
  border-color: var(--line);
  color: #263342;
}
.sidebar nav i {
  font-style: normal;
  font-size: 16px;
  width: 16px;
  color: var(--blue);
}
.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  padding: 20px 9px 0;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 22px 36px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 36px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 28px;
}
.heading p {
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 25px 0;
}
.stat {
  padding: 23px;
}
.stat strong {
  font-size: 29px;
  letter-spacing: -1px;
  display: block;
  margin: 17px 0 6px;
  font-weight: 550;
}
.stat > span {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.7px;
  background: #f8fafc;
}
th,
td {
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tr:last-child td {
  border: 0;
}
td strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 4px;
}
td small {
  font-size: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 9px;
  color: var(--muted);
  background: #f8fafc;
}
.tag.on {
  background: #f2f8f5;
  color: #4d8069;
  border-color: #d4e7dd;
}
.tag.off {
  color: #a54a57;
  background: #fff4f5;
  border-color: #ead2d6;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 19px;
}
.section-top h3,
.section-top h2 {
  margin: 0;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.tabs button {
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 15px;
  border-radius: 30px;
  font-size: 11px;
  color: var(--muted);
}
.tabs button[aria-pressed='true'] {
  background: white;
  border-color: var(--line);
  color: #263342;
  box-shadow: 0 3px 9px #344b6407;
}
.key-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.key-row:first-of-type {
  border: 0;
}
.key-row h3 {
  margin: 4px 0 9px;
}
.key-row .field {
  margin: 0;
}
.key-row .button {
  margin-top: 23px;
}
.back {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-size: 11px;
  margin-bottom: 24px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin: 20px 0;
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: #6387aa;
}
.callout {
  border: 1px solid #d7e4f0;
  background: #edf3f9;
  border-radius: 13px;
  padding: 17px 20px;
  font-size: 11px;
  line-height: 1.8;
  color: #59738e;
  margin: 20px 0;
}
.empty {
  text-align: center;
  padding: 65px 25px;
  color: var(--muted);
}
.empty h3 {
  color: #34475b;
}
#notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 480px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 16px 21px;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: 0 12px 50px #253b5320;
}
#notice.error {
  border-color: #e4c3c9;
  color: #a14e5d;
}
.opening {
  padding: 70px;
  color: var(--muted);
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.key-warning {
  font-size: 10px;
  margin: 0 0 20px;
}
.read-only {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.form-error {
  color: #ab4a58;
  font-size: 12px;
  line-height: 1.7;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    width: 180px;
    padding-inline: 15px;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .topbar {
    padding-inline: 25px;
  }
  main {
    padding: 27px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .key-row {
    grid-template-columns: 100px 1fr;
  }
  .key-row > .button {
    grid-column: 2;
    margin: 0;
    justify-self: start;
  }
  .auth {
    gap: 30px;
  }
  .auth-art h1 {
    font-size: 49px;
  }
  .heading {
    align-items: start;
  }
  .heading .actions {
    flex-shrink: 0;
  }
}
@media (max-width: 700px) {
  .auth {
    display: block;
    padding: 35px 22px;
  }
  .auth-art {
    min-height: 0;
    padding-top: 0;
    margin-bottom: 35px;
  }
  .auth-art > img {
    width: 500px;
    left: 0;
    top: -80px;
    height: 330px;
    opacity: 0.3;
  }
  .auth-art h1 {
    font-size: 39px;
    margin: 30px 0 20px;
  }
  .auth-art .eyebrow {
    display: none;
  }
  .auth-card {
    max-width: none;
    padding: 27px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 21px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 0 20px;
  }
  .sidebar > .eyebrow,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .sidebar nav button {
    padding: 9px 11px;
    white-space: nowrap;
  }
  .sidebar nav i {
    display: none;
  }
  .workspace {
    width: 100%;
  }
  .topbar {
    padding: 15px 21px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  main {
    padding: 27px 21px;
  }
  .heading {
    display: block;
  }
  .heading .actions {
    margin-top: 20px;
  }
  h1 {
    font-size: 33px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .tabs {
    gap: 2px;
  }
  .tabs button {
    padding: 9px 10px;
    font-size: 10px;
  }
  .key-row {
    grid-template-columns: 1fr;
  }
  .key-row .button {
    grid-column: 1;
  }
  .key-row > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .key-row h3 {
    margin: 0;
  }
  #notice {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  th,
  td {
    padding: 14px;
  }
  .heading .eyebrow {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

h1 small {
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 8px;
}
.availability-card summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 550;
  color: #526e8b;
}
.availability-card > p {
  margin-top: 20px;
}
.booking-weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
}
.booking-weekdays legend {
  font-size: 12px;
  color: var(--muted);
}
.booking-weekdays .check {
  margin: 0;
}
.appointment-list-heading {
  margin-top: 35px;
  flex-wrap: wrap;
  gap: 15px;
}
.appointment-list-heading .field {
  margin: 0;
}
.appointment-requests {
  display: grid;
  gap: 16px;
}
.appointment-request .section-top {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 15px;
}
.appointment-request h3 {
  margin-bottom: 7px;
}
.appointment-request a {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.appointment-when {
  color: #527597;
  margin-top: 20px;
}
.appointment-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.appointment-request small {
  display: block;
  overflow-wrap: anywhere;
}
.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tag.pending {
  background: #edf2f8;
  color: #5d7c9b;
}
