:root {
  --bg: #efece6;
  --card: #fffdf9;
  --ink: #1d1b17;
  --soft: rgba(29, 27, 23, 0.58);
  --faint: rgba(29, 27, 23, 0.36);
  --line: rgba(29, 27, 23, 0.09);
  --accent: #1f6b52;
  --row: 50px;
}

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

.cg { position: relative; width: min(318px, 100%); padding: 14px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 #ffffff, 0 34px 54px -36px rgba(29, 27, 23, 0.55), 0 10px 18px -14px rgba(29, 27, 23, 0.22); }

.cg__head { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.cg__bell { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, #ffffff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); }
.cg__bell svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 79%; }
.cg__name { flex: 1 1 auto; min-width: 0; display: grid; }
.cg__name b { font-size: 14.500px; line-height: 19px; font-weight: 720; letter-spacing: -0.01em; }
.cg__name span { font-size: 11.500px; line-height: 15px; font-weight: 540; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg__state { flex: none; height: 16px; overflow: hidden; font-size: 11.500px; line-height: 16px; font-weight: 620; color: var(--soft); white-space: nowrap; transition: color 0.3s ease; }
.cg__state span { display: block; }
.cg.is-sent .cg__state { color: var(--accent); }

/* the body keeps the height of the three requests, so the card never changes size */
.cg__body { position: relative; height: calc(var(--row) * 3); margin-top: 10px; }
.cg__list { display: grid; }
.cg__opt { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: var(--row); padding: 0 8px 0 6px; border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cg__opt::before { content: ""; position: absolute; inset: 2px 0; border-radius: 13px; background: color-mix(in srgb, var(--accent) 7%, #ffffff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent); opacity: 0; transition: opacity 0.25s ease; }
.cg__opt[aria-checked="true"]::before { opacity: 1; }
.cg__opt > * { position: relative; }
.cg__ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #f3f0ea; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s ease; }
.cg__opt[aria-checked="true"] .cg__ico { background: #ffffff; }
.cg__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.400; stroke-linecap: round; stroke-linejoin: round; }
.cg__what { flex: 1 1 auto; min-width: 0; display: grid; }
.cg__what b { font-size: 13.500px; line-height: 18px; font-weight: 680; white-space: nowrap; }
.cg__what span { font-size: 11.500px; line-height: 15px; font-weight: 540; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the tick of the chosen request draws itself */
.cg__tick { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.15s ease; }
.cg__tick path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.35s cubic-bezier(0.3, 0.8, 0.3, 1); }
.cg__opt[aria-checked="true"] .cg__tick { opacity: 1; }
.cg__opt[aria-checked="true"] .cg__tick path { stroke-dashoffset: 0; }
.cg.is-sent .cg__tick { opacity: 0; }
.cg.is-sent .cg__opt { cursor: default; }
.cg__opt:focus-visible, .cg__go:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
@media (hover: hover) { .cg:not(.is-sent) .cg__opt:not([aria-checked="true"]):hover .cg__ico { background: #e9e5dd; } }

.cg__track { position: absolute; left: 0; right: 0; top: calc(var(--row) + 12px); padding: 0 6px; opacity: 0; visibility: hidden; }
.cg__bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.cg__bar { height: 4px; border-radius: 2px; background: rgba(29, 27, 23, 0.1); overflow: hidden; }
.cg__bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.cg__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 7px; font-size: 11.500px; line-height: 15px; font-weight: 620; color: var(--faint); }
.cg__steps span { transition: color 0.3s ease; }
.cg__steps span.is-on { color: var(--ink); }
.cg__say { height: 18px; margin-top: 16px; overflow: hidden; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cg__say span { display: block; overflow: hidden; text-overflow: ellipsis; }

.cg__go { display: block; width: 100%; height: 44px; margin-top: 10px; border: 0; border-radius: 14px; background: var(--ink); color: #ffffff; font: inherit; font-size: 13.500px; font-weight: 700; cursor: pointer; outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 22px -14px rgba(29, 27, 23, 0.7); transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cg__go:disabled { cursor: default; }
.cg.is-busy .cg__go { background: #ebe7df; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.cg.is-done .cg__go { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(29, 27, 23, 0.2); }
.cg__gotext { display: block; height: 20px; line-height: 20px; overflow: hidden; }
.cg__gotext span { display: block; white-space: nowrap; }
@media (hover: hover) { .cg:not(.is-sent) .cg__go:hover { background: #35322c; } .cg.is-done .cg__go:hover { background: rgba(29, 27, 23, 0.05); } }

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