:root {
  --bg: #eef0f3;
  --card: #ffffff;
  --ink: #191b20;
  --soft: rgba(25, 27, 32, 0.55);
  --line: rgba(25, 27, 32, 0.08);
  --accent: #4f6bff;
}

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

.td { position: relative; width: min(318px, 100%); padding: 12px 10px 8px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(25, 27, 32, 0.05), 0 30px 50px -32px rgba(40, 50, 110, 0.5); }

.td__search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 15px; background: #f3f4f6; box-shadow: inset 0 0 0 1px transparent; }
.td__search:focus-within, .td__search.is-focus { background: #ffffff; box-shadow: inset 0 0 0 1.500px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent); }
.td__search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--soft); stroke-width: 1.700; stroke-linecap: round; }
.td__search input { flex: 1 1 auto; min-width: 0; height: 42px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14.500px; font-weight: 600; outline: none; caret-color: var(--accent); -webkit-appearance: none; appearance: none; }
.td__search input::placeholder { color: var(--soft); font-weight: 540; }
.td__search input::-webkit-search-cancel-button { display: none; }
.td__count { flex: none; height: 16px; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 640; color: var(--soft); white-space: nowrap; }
.td__count b { display: block; font-weight: inherit; }

.td__chips { position: relative; display: flex; gap: 2px; height: 30px; margin: 9px 0 5px; }
.td__marker { position: absolute; left: 0; top: 0; width: 40px; height: 30px; border-radius: 15px; background: var(--ink); box-shadow: 0 6px 10px -7px rgba(25, 27, 32, 0.7); }
.td__chip { position: relative; height: 30px; padding: 0 11px; border: 0; border-radius: 15px; background: none; color: var(--soft); font: inherit; font-size: 12.500px; font-weight: 660; white-space: nowrap; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; transition: color 0.2s; }
.td__chip[aria-checked="true"] { color: #ffffff; }
.td__chip:focus-visible, .td__act:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }

.td__list { list-style: none; height: 225px; overflow: hidden; }
.td__row { height: 45px; overflow: hidden; }
.td__in { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px; border-radius: 14px; }
.td__in.is-over { background: #f5f6f8; }
.td__avatar { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(90% 90% at 30% 20%, rgba(255, 255, 255, 0.75), transparent 60%), var(--c, #ccd); color: rgba(20, 22, 30, 0.82); font-size: 11.500px; font-weight: 760; letter-spacing: 0.02em; }
.td__who { flex: 1 1 auto; min-width: 0; display: grid; }
.td__name { font-size: 14px; line-height: 18px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td__role { font-size: 12px; line-height: 15px; font-weight: 540; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td__row mark { padding: 0 1px; margin: 0 -1px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: inherit; }
.td__acts { flex: none; display: flex; gap: 3px; }
.td__act { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #ffffff; color: var(--ink); cursor: pointer; outline: none; box-shadow: 0 0 0 1px var(--line), 0 3px 6px -4px rgba(25, 27, 32, 0.4); -webkit-tap-highlight-color: transparent; }
.td__act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }

.td__none { position: absolute; left: 0; right: 0; top: 150px; text-align: center; font-size: 13px; font-weight: 580; color: var(--soft); opacity: 0; pointer-events: none; }
.td__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: #191b20; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(25, 27, 32, 0.3)); z-index: 5; }
