* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  font-size: 16px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  border: 1px solid #cbd0cd;
  border-radius: 10px;
  background: white;
  padding: 10px 18px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.25;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button.primary {
  background: #086536;
  color: white;
  border-color: #086536;
  font-weight: 700;
}
svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #176c4a;
  outline-offset: 3px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  border-right: 1px solid #e0e5e2;
  padding: 28px 13px;
  display: flex;
  flex-direction: column;
  background: #f6f8f7;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  font-size: 24px;
  padding: 0 14px;
  margin-bottom: 43px;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.brand svg {
  width: 28px;
  height: 28px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 19px;
  transition: background-color 150ms ease;
}
nav a[aria-current] {
  font-weight: bold;
  background: var(--selected);
}
.profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.avatar {
  background: #d9eada;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.profile div {
  display: grid;
  gap: 4px;
}
.profile div span,
.muted {
  color: #5d6360;
}
main {
  margin-left: 232px;
  min-width: 0;
  padding: 28px 34px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
h1 {
  margin: 0 0 4px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1.2px;
}
header p {
  font-size: 19px;
  margin: 0;
  margin-top: 6px;
  color: var(--muted);
}
h2 {
  font-size: 23px;
  margin: 0 0 10px;
}
p {
  line-height: 1.5;
}
.draft {
  font-size: 13px;
  color: #626963;
  margin: 16px 0;
}
.weekbar {
  border-block: 1px solid #e4e7e5;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.weekbar > div {
  display: flex;
  align-items: center;
  gap: 24px;
}
.weekbar strong {
  font-size: 22px;
}
.weekbar button {
  padding: 7px 15px;
}
.calendar-scroll {
  overflow-x: auto;
}
.calendar {
  min-width: 900px;
  padding-top: 18px;
  padding-bottom: 12px;
}
.days {
  display: grid;
  grid-template-columns: 68px repeat(7, 1fr);
  height: 56px;
  text-align: center;
}
.days strong {
  border-right: 1px solid #e8ebe9;
  padding-top: 5px;
  font-size: 15px;
  text-transform: capitalize;
  padding-inline: 4px;
}
.timeline {
  display: flex;
  height: 1600px;
}
.times {
  width: 68px;
  flex-shrink: 0;
  position: relative;
}
.times span {
  position: absolute;
  transform: translateY(-50%);
  font-size: 15px;
  color: #343c37;
  font-variant-numeric: tabular-nums;
}
.grid {
  position: relative;
  display: flex;
  flex: 1;
  background: repeating-linear-gradient( to bottom, #e1e5e2 0, #e1e5e2 1px, transparent 1px, transparent 160px );
  border: 1px solid #e1e5e2;
  border-radius: 4px;
}
.day {
  width: calc(100% / 7);
  border-right: 1px solid #e1e5e2;
}
.closed {
  background: #edf3efb3;
}
.closed-label {
  display: block;
  text-align: center;
  color: #626963;
  font-size: 12px;
  padding: 7px;
}
.entry {
  position: absolute;
  left: calc(var(--day) * 100% / 7 + 3px);
  width: calc(100% / 7 - 6px);
  background: #dff0d8;
  border-left: 5px solid #137239;
  border-radius: 9px;
  padding: 6px 8px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.25;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  justify-content: flex-start;
  gap: 4px;
}
.entry strong {
  font-size: 15px;
}
.entry-time {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  flex-wrap: wrap;
}
.entry-time svg {
  width: 18px;
  height: 18px;
}
.entry.block {
  background: #ededee;
  border-left-color: #666;
}
.entry.free {
  background: white;
  border: 1px dashed var(--green);
}
.legend {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #e4e7e5;
  padding-top: 20px;
  font-size: 14px;
  margin-top: 32px;
  padding-block: 20px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.service-banner {
  display: flex;
  align-items: center;
  gap: 35px;
  background: #f2f6f3;
  border: 1px solid #e4e9e5;
  border-radius: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 30px 0 24px;
  padding: 22px;
}
.service-banner p {
  margin: 0;
  color: #5d6360;
}
.service-banner > span {
  font-size: 23px;
  border-left: 1px solid #ccd6ce;
  padding-left: 34px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
  text-align: left;
}
th {
  font-size: 16px;
  color: #5d6360;
  padding: 20px 12px;
  font-weight: 600;
}
td {
  border-top: 1px solid #e5e9e6;
  white-space: nowrap;
  padding: 24px 12px;
}
.service-name {
  display: flex;
  align-items: center;
  gap: 18px;
}
.service-name > svg {
  box-sizing: content-box;
  background: #f4f7f5;
  border-radius: 12px;
  width: 24px;
  height: 24px;
  padding: 12px;
}
.service-name div {
  display: grid;
  gap: 7px;
}
.service-name span {
  color: #5d6360;
}
.service-note {
  margin-top: 36px;
  color: #5d6360;
}
.settings-form {
  max-width: 850px;
}
.settings-form section {
  padding: 24px 0;
  border-bottom: 1px solid #e1e5e2;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
label {
  display: grid;
  gap: 9px;
  font-weight: 600;
}
input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #c7ceca;
  border-radius: 8px;
  padding: 11px;
  background: white;
  color: #242b26;
  font-weight: 400;
}
form button {
  margin-top: 24px;
}
.hours-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  align-items: flex-start;
  padding: 12px 0;
}
.hours-row > strong {
  width: 110px;
  text-transform: capitalize;
}
.hours-row input {
  width: 135px;
}
.login-card {
  max-width: 430px;
  margin: 70px auto;
  border: 1px solid #e0e5e2;
  border-radius: 14px;
  padding: 32px;
}
.login-card label {
  margin-top: 22px;
}
.login-card button {
  width: 100%;
}
.login-card p {
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.hour-range {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.day-ranges {
  display: grid;
  gap: 12px;
}
.day-ranges button {
  margin: 0;
  justify-self: start;
}
.signed-out main {
  margin: 0;
  max-width: 600px;
  margin-inline: auto;
}
.signed-out .brand {
  margin-bottom: 36px;
}
.entry[data-duration="0.5"] {
  padding: 3px 6px;
  font-size: 12px;
  line-height: 1.15;
}
.entry[data-duration="0.5"] strong {
  font-size: 14px;
}
.entry[data-duration="0.5"] .entry-time svg {
  width: 16px;
  height: 16px;
}
.live-entry {
  text-align: left;
  cursor: pointer;
  margin: 0;
  left: calc( var(--day) * 100% / 7 + var(--lane) * 100% / 7 / var(--lanes) + 3px );
  width: calc(100% / 7 / var(--lanes) - 6px);
  overflow-wrap: anywhere;
}
dialog {
  width: min(560px, calc(100% - 24px));
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #cbd0cd;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 20px 70px #142b252b;
  animation: dialog-open 160ms ease-out;
}
dialog form {
  display: grid;
  gap: 12px;
}
dialog form button {
  margin-top: 0;
}
[hidden] {
  display: none !important;
}
:root {
  --ink: #101412;
  --muted: #59615d;
  --green: #086536;
  --selected: #d8e9da;
}
nav a:hover {
  background: #e9efeb;
}
#message:empty {
  margin: 24px 0 0;
}
#message:not(:empty) {
  border-left: 3px solid var(--green);
  background: #f2f6f3;
  padding: 12px 16px;
  border-radius: 4px;
}
button:hover:not(:disabled),
.button:hover {
  background: #f0f5f1;
  border-color: #879b8e;
}
button.primary:hover:not(:disabled) {
  background: #07542e;
  border-color: #07542e;
}
.weekbar #prev,
.weekbar #next {
  min-width: 42px;
  font-size: 26px;
  line-height: 1;
}
#add {
  padding: 12px 20px;
}
.day:last-child {
  border-right: 0;
}
.entry:hover:not(:disabled) {
  background: #d1e8c8;
  box-shadow: 0 2px 8px #153a211a;
}
.entry.block:hover:not(:disabled) {
  background: #e0e2e1;
}
.entry.free:hover:not(:disabled) {
  background: #f0f6f1;
}
.legend > span:last-child {
  color: var(--muted);
  border-left: 1px solid #cbd0cd;
  padding-left: 24px;
}
.service-banner h2 {
  margin-bottom: 5px;
}
td a {
  text-underline-offset: 4px;
}
td button {
  margin-left: 10px;
  padding: 8px 12px;
}
.service-name strong {
  font-size: 18px;
}
.table-scroll + p {
  color: var(--muted);
  margin-top: 32px;
}
.settings-form h2 {
  margin-bottom: 18px;
}
input:focus,
select:focus {
  border-color: var(--green);
}
dialog::backdrop {
  background: #142b254d;
}
dialog h2 {
  margin-bottom: 20px;
}
header .button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.profile #signout {
  margin-top: 8px;
}
.week-label {
  color: var(--muted);
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid #e1e5e2;
    padding: 18px 16px 14px;
  }
  .brand {
    margin: 0 0 18px;
    padding: 0;
    font-size: 23px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }
  nav a {
    font-size: 14px;
    padding: 10px;
    gap: 6px;
  }
  nav a svg {
    width: 18px;
    height: 18px;
  }
  .profile {
    display: flex;
    padding: 0;
    margin-top: 12px;
    gap: 10px;
  }
  main {
    margin-left: 0;
    padding: 22px 16px;
  }
  h1 {
    font-size: 32px;
  }
  header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  header p {
    font-size: 16px;
  }
  .weekbar > div {
    flex-wrap: wrap;
    gap: 6px;
  }
  .weekbar strong {
    font-size: 14px;
  }
  .weekbar > span {
    display: block;
  }
  .legend {
    gap: 16px;
  }
  .service-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    margin-top: 24px;
    gap: 18px;
  }
  .service-banner > span {
    border: 0;
    padding: 0;
    font-size: 20px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .hours-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .hours-row > strong {
    width: 100%;
  }
  .login-card {
    margin: 25px 0;
    padding: 24px;
  }
  .profile button {
    padding: 7px 10px;
    font-size: 13px;
  }
  .weekbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }
  .weekbar button {
    padding: 8px 10px;
  }
  .legend > span:last-child {
    border-left: 0;
    padding-left: 0;
    flex-basis: 100%;
  }
  dialog {
    padding: 20px;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
    min-width: 0;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    border: 1px solid #e1e5e2;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
  }
  td {
    border: 0;
    padding: 8px 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
  }
  .profile #signout {
    margin: 0 0 0 auto;
  }
}
@keyframes dialog-open {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
