:root {
  --bg: #ffffff;
  --pill: #f4f4f6;
  --ink: #1a1b20;
  --soft: rgba(26, 27, 32, 0.56);
  --line: rgba(26, 27, 32, 0.08);
  --accent: #ff5a4d;
}

*, *::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 14px;
}

.rs { position: relative; width: min(288px, 100%); }
.rs__btn { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 64px; padding: 0 16px 0 10px; border: 0; border-radius: 22px; background: linear-gradient(180deg, #f8f8fa, var(--pill)); color: var(--ink); font: inherit; text-align: left; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 #ffffff, 0 14px 24px -18px rgba(26, 27, 32, 0.5); z-index: 2; }
.rs__btn:focus-visible, .rs__slot:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }

/* the calendar leaf: a red header with the month, the day below; the day part is what turns over */
.rs__leaf { flex: none; width: 44px; height: 46px; display: grid; grid-template-rows: 15px 1fr; border-radius: 11px; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 6px 10px -6px rgba(26, 27, 32, 0.45); overflow: hidden; perspective: 200px; }
.rs__leaf i { display: block; height: 15px; overflow: hidden; background: var(--accent); color: #ffffff; font-style: normal; font-size: 9px; line-height: 15px; font-weight: 800; letter-spacing: 0.08em; text-align: center; }
.rs__leaf i span { display: block; }
.rs__day { display: grid; place-items: center; transform-origin: 50% 0; }
.rs__day b { font-size: 20px; line-height: 24px; font-weight: 780; font-stretch: 96%; letter-spacing: -0.02em; }

.rs__text { flex: 1 1 auto; min-width: 0; display: grid; }
.rs__label { height: 20px; overflow: hidden; font-size: 15.500px; line-height: 20px; font-weight: 710; font-stretch: 102%; letter-spacing: -0.01em; white-space: nowrap; }
.rs__sub { height: 16px; overflow: hidden; font-size: 12.500px; line-height: 16px; font-weight: 560; color: var(--soft); white-space: nowrap; }
.rs__label span, .rs__sub span { display: block; }
.rs__chev { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--soft); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }

.rs__tray { position: absolute; left: 0; right: 0; top: 72px; display: grid; gap: 5px; visibility: hidden; }
.rs__slot { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border: 0; border-radius: 14px; background: #ffffff; color: var(--ink); font: inherit; font-size: 13.500px; font-weight: 660; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: 0 0 0 1px var(--line), 0 10px 16px -12px rgba(26, 27, 32, 0.45); }
.rs__slot em { font-style: normal; font-weight: 560; color: var(--soft); }
@media (hover: hover) { .rs__slot:hover { background: #f7f7f9; } }

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

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #1a1b20; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(26, 27, 32, 0.3)); z-index: 5; }
