:root {
  --bg: #ffffff;
  --ink: #17181d;
  --soft: rgba(23, 24, 29, 0.56);
  --faint: rgba(23, 24, 29, 0.34);
  --line: rgba(23, 24, 29, 0.09);
  --accent: #13a36c;
  --off: #d98512;
  --tone: var(--accent);
}

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

.ar { position: relative; width: min(292px, 100%); padding: 16px 18px 14px; border-radius: 24px; background: linear-gradient(180deg, #ffffff, #fbfbfc); box-shadow: 0 0 0 1px var(--line), 0 1px 0 #ffffff inset, 0 30px 50px -32px rgba(23, 24, 29, 0.45), 0 8px 16px -12px rgba(23, 24, 29, 0.18); }
.ar.is-off { --tone: var(--off); }

.ar__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar__head h1 { font-size: 16px; line-height: 21px; font-weight: 720; letter-spacing: -0.012em; }
.ar__plan { font-size: 12.500px; line-height: 17px; font-weight: 540; color: var(--soft); }
.ar__switch { position: relative; flex: none; width: 50px; height: 30px; border: 0; border-radius: 15px; background: var(--accent); cursor: pointer; outline: none; box-shadow: inset 0 1px 2px rgba(23, 24, 29, 0.18); transition: background-color 0.35s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ar.is-off .ar__switch { background: #d5d7de; }
.ar__switch:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.ar__knob { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 5px rgba(23, 24, 29, 0.3), 0 0 0 0.500px rgba(23, 24, 29, 0.08); }

/* the cycle: the period you are in, the part of it already gone, and after it the period to come */
.ar__cycle { position: relative; height: 10px; margin-top: 18px; }
.ar__now, .ar__next { position: absolute; top: 0; height: 10px; border-radius: 5px; }
.ar__now { left: 0; background: #ececf1; overflow: hidden; }
.ar__now i { position: absolute; inset: 0; border-radius: 5px; background: var(--tone); transform: scaleX(0.3); transform-origin: 0 50%; transition: background-color 0.4s ease; }
.ar__next { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, #ffffff) 0 5px, color-mix(in srgb, var(--accent) 18%, #ffffff) 5px 10px); }
.ar__today { position: absolute; top: -4px; width: 2px; height: 18px; margin-left: -1px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 2px #ffffff; }
.ar__dates { position: relative; height: 16px; margin-top: 7px; font-size: 11.500px; line-height: 16px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.ar__dates span { position: absolute; top: 0; }
.ar__dates span:first-child { left: 0; }
.ar__dates [data-edge] { color: var(--ink); transform: translateX(-50%); }
.ar__dates [data-far] { right: 0; }

.ar__state { height: 19px; margin-top: 10px; overflow: hidden; font-size: 13.500px; line-height: 19px; font-weight: 640; color: var(--tone); transition: color 0.4s ease; }
.ar__state span { display: block; }

.ar__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: #17181d; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(23, 24, 29, 0.3)); z-index: 5; }
