:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #15171a;
  --soft: rgba(21, 23, 26, 0.5);
  --line: rgba(21, 23, 26, 0.08);
  --bin: #3f9d5b;
}

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

.bc {
  width: min(336px, 100%);
  padding: 14px 14px 8px;
  border-radius: 28px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(21, 23, 26, 0.07),
    0 1px 2px rgba(21, 23, 26, 0.05),
    0 14px 28px -12px rgba(21, 23, 26, 0.16),
    0 44px 70px -34px color-mix(in srgb, var(--bin) 40%, rgba(21, 23, 26, 0.28));
  transition: box-shadow 0.5s ease;
}
.bc__head { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 2px; }
.bc__title { font-size: 15px; font-weight: 680; font-stretch: 108%; letter-spacing: -0.008em; }
.bc__zone { font-size: 11.5px; font-weight: 600; color: var(--soft); }

/* the week: seven real radio buttons, a dark tile slides under the chosen one */
.bc__week { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 8px; padding: 3px; border-radius: 16px; background: rgba(21, 23, 26, 0.045); }
.bc__pick { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 7); pointer-events: none; }
.bc__pick i { display: block; width: 100%; height: 100%; border-radius: 13px; background: var(--ink); box-shadow: 0 4px 10px -4px rgba(21, 23, 26, 0.5); }
.day {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  height: clamp(44px, 12.500vh, 52px);
  border: 0;
  border-radius: 13px;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.25s ease;
}
.day__name { font-size: 10px; font-weight: 600; color: var(--soft); transition: color 0.25s ease; }
.day__num { font-size: 15px; line-height: 17px; font-weight: 660; }
/* a short bar in the colour of what is collected that day; none on a day off */
.day__tag { width: 12px; height: 3px; margin-top: 2px; border-radius: 2px; background: var(--c, transparent); transition: width 0.3s ease; }
.day[aria-checked="true"] { color: #ffffff; }
.day[aria-checked="true"] .day__name { color: rgba(255, 255, 255, 0.62); }
.day[aria-checked="true"] .day__tag { width: 18px; }
.day:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }

.bc__day { display: flex; align-items: center; gap: 12px; height: clamp(98px, 29vh, 124px); padding: 0 4px 4px; }
.bc__bin { flex: none; height: 100%; width: auto; aspect-ratio: 96 / 130; overflow: visible; }
.bin__shade { fill: rgba(21, 23, 26, 0.1); }
.bin__body { fill: var(--bin); transition: fill 0.45s ease; }
.bin__lip, .bin__lid { fill: color-mix(in srgb, var(--bin) 78%, #000000); transition: fill 0.45s ease; }
.bin__grip { fill: none; stroke: color-mix(in srgb, var(--bin) 78%, #000000); stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.45s ease; }
.bin__rib { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 2; stroke-linecap: round; }
.bin__wheel { fill: #2a2d31; }
.bin__hub { fill: #9a9da3; }
.bc.is-off .bin__body, .bc.is-off .bin__lip, .bc.is-off .bin__lid { fill: #e4e5e7; }
.bc.is-off .bin__grip { stroke: #e4e5e7; }
.bc.is-off .bin__wheel { fill: #c9cbcf; }

.bc__text { min-width: 0; flex: 1; display: grid; gap: 2px; }
.bc__when, .bc__what, .bc__by { display: block; overflow: hidden; white-space: nowrap; }
.bc__when span, .bc__what span, .bc__by span { display: block; overflow: hidden; text-overflow: ellipsis; }
.bc__when { height: 16px; font-size: 11.5px; line-height: 16px; font-weight: 640; color: var(--bin); transition: color 0.45s ease; }
.bc.is-off .bc__when { color: var(--soft); }
.bc__what { height: 26px; font-size: 20px; line-height: 26px; font-weight: 660; font-stretch: 104%; letter-spacing: -0.015em; }
.bc__by { height: 17px; font-size: 12px; line-height: 17px; font-weight: 540; color: var(--soft); }

.bc__remind {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: clamp(38px, 10.500vh, 44px);
  padding: 0 2px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bc__bell { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--soft); stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: stroke 0.25s ease; }
.bc__remind[aria-pressed="true"] .bc__bell { stroke: var(--ink); }
.bc__rtext { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc__switch { flex: none; width: 36px; height: 22px; padding: 2px; border-radius: 11px; background: rgba(21, 23, 26, 0.14); transition: background-color 0.3s ease; }
.bc__switch i { display: block; width: 18px; height: 18px; border-radius: 9px; background: #ffffff; box-shadow: 0 1px 3px rgba(21, 23, 26, 0.3); }
.bc__remind[aria-pressed="true"] .bc__switch { background: var(--ink); }
.bc__remind:focus-visible .bc__switch { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #15171a;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .day:hover .day__name { color: var(--ink); }
  .day[aria-checked="true"]:hover .day__name { color: rgba(255, 255, 255, 0.62); }
  .bc__remind:hover .bc__bell { stroke: var(--ink); }
}
