:root {
  --bg: #0b0b0e;
  --card: #15151a;
  --tile: #1f1f26;
  --ink: #f3f2f6;
  --soft: rgba(243, 242, 246, 0.6);
  --faint: rgba(243, 242, 246, 0.34);
  --line: rgba(243, 242, 246, 0.1);
  --accent: #ff6b8b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(80% 55% at 50% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 72%), 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 12px;
}

.wm { position: relative; width: min(322px, 100%); padding: 14px; border-radius: 26px; background: linear-gradient(180deg, #1b1b21, var(--card)); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 60px -30px rgba(0, 0, 0, 0.8); }

.wm__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.wm__name { min-width: 0; display: grid; }
.wm__name b { font-size: 15px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; }
.wm__whenroll { height: 15px; overflow: hidden; font-size: 11.500px; line-height: 15px; font-weight: 540; color: var(--soft); white-space: nowrap; }
.wm__whenroll span { display: block; }
.wm__total { flex: none; display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.wm__total b { font-size: 24px; line-height: 28px; font-weight: 760; letter-spacing: -0.02em; }
.wm__total span { font-size: 11.500px; font-weight: 580; color: var(--soft); }

.wm__tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 36px; margin-top: 11px; padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line); }
.wm__pick { position: absolute; left: 3px; top: 3px; width: calc((100% - 6px) / 3); height: 30px; border-radius: 9px; background: #2b2b34; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 8px -4px rgba(0, 0, 0, 0.8); }
.wm__tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--soft); font: inherit; font-size: 12px; font-weight: 640; cursor: pointer; outline: none; transition: color 0.25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.wm__tab b { display: inline-block; font-weight: 720; font-variant-numeric: tabular-nums; color: var(--faint); transition: color 0.25s ease; }
.wm__tab[aria-selected="true"] { color: var(--ink); }
.wm__tab[aria-selected="true"] b { color: var(--accent); }
.wm__tab:focus-visible, .wm__go:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
@media (hover: hover) { .wm__tab:hover { color: var(--ink); } }

/* the panel keeps one height for the three views, so the card never changes size */
.wm__body { position: relative; height: 150px; margin-top: 10px; overflow: hidden; }
.wm__faces { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-content: start; }
.wm__face { aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; background: hsl(var(--h, 340) 46% 24%); color: hsl(var(--h, 340) 90% 86%); box-shadow: inset 0 0 0 1px hsl(var(--h, 340) 50% 36%); font-size: 11.500px; font-weight: 740; }
.wm__face.is-new { background: var(--accent); color: #2a0a12; box-shadow: none; }
.wm__list { list-style: none; display: grid; gap: 2px; }
.wm__reply { display: flex; align-items: center; gap: 10px; height: 42px; }
.wm__reply .wm__face { flex: none; width: 30px; }
.wm__what { min-width: 0; display: grid; }
.wm__what b { font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.wm__what em { margin-left: 5px; font-style: normal; font-weight: 540; color: var(--faint); }
.wm__what span { font-size: 12px; line-height: 16px; font-weight: 540; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wm__go { position: relative; display: block; width: 100%; height: 44px; margin-top: 8px; border: 0; border-radius: 14px; background: #25252d; color: var(--ink); font: inherit; font-size: 13.500px; font-weight: 700; cursor: pointer; outline: none; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07); transition: background-color 0.3s ease, color 0.3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.wm__go:disabled { cursor: default; color: var(--soft); }
.wm__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.wm__gotext { display: block; height: 20px; line-height: 20px; overflow: hidden; }
.wm__gotext span { display: block; white-space: nowrap; }
@media (hover: hover) { .wm__go:not(:disabled):hover { background: #2f2f38; } }

.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: #f3f2f6; stroke: #0b0b0e; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }
