:root {
  --bg: #ffffff;
  --card: #f5f6f7;
  --ink: #15191c;
  --soft: rgba(21, 25, 28, 0.56);
  --quiet: rgba(21, 25, 28, 0.06);
  --accent: #0f9b8e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 10px;
}

.dn { position: relative; width: min(320px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); padding: 18px 16px 16px; border-radius: 28px; background: linear-gradient(180deg, #fafbfb, var(--card)); box-shadow: inset 0 0 0 1px rgba(21, 25, 28, 0.07), inset 0 1px 0 #ffffff, 0 1px 2px rgba(21, 25, 28, 0.05), 0 26px 44px -30px rgba(21, 25, 28, 0.4); }
.dn__roll { display: block; overflow: hidden; }
.dn__roll > span { display: block; white-space: nowrap; }

.dn__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dn__title { font-size: 17px; line-height: 24px; font-weight: 740; font-stretch: 102%; letter-spacing: -0.012em; white-space: nowrap; }
.dn__sub { font-size: 12px; font-weight: 560; color: var(--soft); white-space: nowrap; }

/* the treatments: each one says how long it takes */
.dn__treat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.dn__treat button { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--quiet); color: var(--ink); font: inherit; font-size: 13px; font-weight: 660; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1.500px transparent; transition: background-color 0.25s, box-shadow 0.25s; white-space: nowrap; }
.dn__treat button small { font-size: 11px; font-weight: 600; color: var(--soft); transition: color 0.25s; }
.dn__treat button[aria-checked="true"] { background: #ffffff; box-shadow: inset 0 0 0 1.500px var(--accent), 0 6px 12px -8px rgba(21, 25, 28, 0.35); }
.dn__treat button[aria-checked="true"] small { color: var(--accent); }
.dn__treat button:focus-visible { box-shadow: 0 0 0 2px #fafbfb, 0 0 0 4px var(--ink); }

/* the morning: taken times are hatched, the block is the visit */
.dn__day { margin-top: 14px; }
.dn__rail { position: relative; height: 46px; border-radius: 14px; background: #ffffff; box-shadow: inset 0 0 0 1px rgba(21, 25, 28, 0.08); touch-action: none; -webkit-user-select: none; user-select: none; overflow: hidden; }
.dn__busy { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(-45deg, rgba(21, 25, 28, 0.1) 0 1.500px, transparent 1.500px 6px), rgba(21, 25, 28, 0.035); }
.dn__grid { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(21, 25, 28, 0.07); }
.dn__land { position: absolute; left: 0; top: 5px; bottom: 5px; width: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1.500px var(--accent); opacity: 0; pointer-events: none; }
.dn__block { --fill: var(--accent); position: absolute; left: 0; top: 5px; bottom: 5px; width: 40px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 10px; background: var(--fill); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 14px -8px var(--fill); cursor: grab; outline: none; }
.dn__block:active { cursor: grabbing; }
.dn__block:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.dn__block i { width: 2px; height: 12px; border-radius: 1px; background: rgba(255, 255, 255, 0.7); }
.dn__hours { position: relative; height: 16px; margin-top: 4px; }
.dn__hours span { position: absolute; top: 0; transform: translateX(-50%); font-size: 10.500px; line-height: 16px; font-weight: 600; color: rgba(21, 25, 28, 0.42); white-space: nowrap; }
.dn__hours span:first-child { transform: none; }
.dn__hours span:last-child { transform: translateX(-100%); }

.dn__book { display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 12px; border: 0; border-radius: 24px; background: var(--ink); color: #ffffff; font: inherit; font-size: 15px; font-weight: 720; font-stretch: 104%; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 22px -16px rgba(21, 25, 28, 0.8); }
.dn__book:focus-visible { box-shadow: 0 0 0 2px #fafbfb, 0 0 0 4px var(--ink); }
.dn__book svg { flex: none; width: 0; height: 20px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.dn__book svg path { stroke-dasharray: 1; stroke-dashoffset: 1; visibility: hidden; }
.dn__book .dn__roll { height: 22px; line-height: 22px; }
.dn.is-booked .dn__treat button, .dn.is-booked .dn__block { pointer-events: none; }
.dn.is-booked .dn__treat button:not([aria-checked="true"]) { opacity: 0.45; }

@media (hover: hover) {
  .dn__treat button:hover { background: rgba(21, 25, 28, 0.09); }
  .dn__treat button[aria-checked="true"]:hover { background: #ffffff; }
}

.dn__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; fill: var(--ink); stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(21, 25, 28, 0.3)); z-index: 5; }
