:root {
  --bg: #0b0c0f;
  --card: #15171c;
  --card-hi: #1c1f25;
  --ink: #f3f2ee;
  --soft: rgba(243, 242, 238, 0.5);
  --line: rgba(255, 255, 255, 0.08);
  --bar: rgba(243, 242, 238, 0.26);
  --accent: #5fd0b4;
  --name: 92px;
  --row: 38px;
}

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

.ro {
  width: min(356px, 100%);
  padding: 17px 16px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px var(--line),
    0 34px 70px -36px color-mix(in srgb, var(--accent) 40%, transparent);
}
.ro__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ro__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--soft); }
.ro__who { height: 28px; margin-top: 3px; overflow: hidden; font-size: 22px; line-height: 28px; font-weight: 600; font-stretch: 108%; letter-spacing: -0.015em; white-space: nowrap; }
.ro__who span { display: block; }
.ro__hours { display: flex; align-items: baseline; gap: 5px; }
.ro__hours b { font-size: 30px; line-height: 30px; font-weight: 320; font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent); }
.ro__hours i { font-style: normal; font-size: 11.500px; font-weight: 520; color: var(--soft); }

.ro__grid { position: relative; margin-top: 12px; }
.ro__days { display: grid; grid-template-columns: repeat(7, 1fr); margin-left: var(--name); height: 20px; }
.ro__days span { font-size: 10.500px; line-height: 16px; font-weight: 600; text-align: center; color: var(--soft); }
.ro__days span.is-today { color: var(--ink); font-weight: 760; }
/* today's column: a faint band behind the bars */
.ro__today { position: absolute; top: 0; bottom: 0; width: calc((100% - var(--name)) / 7); border-radius: 9px; background: rgba(255, 255, 255, 0.05); pointer-events: none; }

.row {
  position: relative;
  display: grid;
  grid-template-columns: var(--name) repeat(7, 1fr);
  align-items: center;
  width: 100%;
  height: var(--row);
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.row__name { display: flex; align-items: center; gap: 8px; font-size: 13.500px; font-weight: 540; white-space: nowrap; transition: opacity 0.35s ease; }
.row__face { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.09); font-size: 9.500px; font-weight: 720; letter-spacing: 0.02em; transition: background-color 0.35s ease, color 0.35s ease; }
.row__day { display: grid; grid-template-rows: 1fr 1fr; row-gap: 4px; height: 20px; padding: 0 3px; }
.row__day i { display: block; border-radius: 99px; background: var(--bar); transform-origin: 0% 50%; transition: background-color 0.35s ease, opacity 0.35s ease; }
.row__day i.is-off { visibility: hidden; }
.row__day i.is-pm { background: color-mix(in srgb, var(--bar) 60%, transparent); }
.ro.has-pick .row:not(.is-on) .row__name { opacity: 0.4; }
.ro.has-pick .row:not(.is-on) .row__day i { opacity: 0.4; }
.row.is-on .row__name { font-weight: 680; }
.row.is-on .row__face { background: var(--accent); color: #0b1a16; }
.row.is-on .row__day i:not(.is-off) { background: var(--accent); }
.row.is-on .row__day i.is-pm { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.row:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); border-radius: 8px; }

.ro__key { display: flex; align-items: center; margin-top: 9px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 480; color: var(--soft); white-space: nowrap; }
.ro__chip { width: 16px; height: 6px; margin-right: 6px; border-radius: 99px; background: var(--bar); }
.ro__chip--pm { margin-left: 14px; background: color-mix(in srgb, var(--bar) 60%, transparent); }

@media (min-width: 700px) and (min-height: 500px) { .ro { zoom: 1.3; } }
@media (min-width: 1100px) and (min-height: 760px) { .ro { zoom: 1.6; } }
