.who {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--who-ring, var(--line-dark));
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease);
}
.who:hover,
.who[aria-expanded='true'] { box-shadow: inset 0 0 0 1.5px var(--who-ring-on, var(--ink-2)); }
.who:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.who-face {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--avatar-image, none) center / cover no-repeat, #2a2c30;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 610;
  line-height: 1;
}
.who-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wc {
  --ink: #f5f5f5;
  --ink-2: rgba(255, 255, 255, 0.66);
  --ink-3: rgba(255, 255, 255, 0.5);
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 60;
  width: min(21.5rem, calc(100vw - 2rem));
  max-height: calc(100vh - var(--bar-h, 3.25rem) - 4rem);
  max-height: calc(100dvh - var(--bar-h, 3.25rem) - 4rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 1.5rem 0.875rem 0.875rem;
  border: 1px solid #262626;
  border-radius: 24px;
  background: #0a0a0a;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.85), 0 12px 28px -8px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: left;
  transform-origin: top right;
  animation: wc-in 0.22s var(--ease);
}
.wc::-webkit-scrollbar { display: none; }
.wc.wc-float {
  position: fixed;
  top: auto;
  right: auto;
  left: var(--wc-x, 0.5rem);
  bottom: var(--wc-y, 0.5rem);
  z-index: 120;
  max-height: calc(100vh - var(--wc-y, 0.5rem) - 1rem);
  max-height: calc(100dvh - var(--wc-y, 0.5rem) - 1rem);
  transform-origin: bottom left;
}
.wc.wc-float.wc-down {
  top: var(--wc-y, 0.5rem);
  bottom: auto;
  max-height: calc(100vh - var(--wc-y, 0.5rem) - 1rem);
  max-height: calc(100dvh - var(--wc-y, 0.5rem) - 1rem);
  transform-origin: top left;
}
@media (max-width: 600px) {
  .wc,
  .wc.wc-float,
  .wc.wc-float.wc-down {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    padding: 1.75rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6);
    transform-origin: bottom center;
    animation: wc-sheet 0.26s var(--ease);
  }
  .wc::before {
    content: '';
    position: absolute;
    top: 0.625rem;
    left: 50%;
    width: 2.25rem;
    height: 0.25rem;
    margin-left: -1.125rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
  }
  .wc-row { min-height: 2.875rem; }
  .wc-input { font-size: 1rem; }
}
@keyframes wc-sheet {
  from { opacity: 0; transform: translateY(1.5rem); }
}
@keyframes wc-in {
  from { opacity: 0; transform: scale(0.97) translateY(-4px); }
}
@keyframes wc-push {
  from { opacity: 0; transform: translateX(14px); }
}
@keyframes wc-pop {
  from { opacity: 0; transform: translateX(-14px); }
}
.wc-page[data-enter='in'] { animation: wc-push 0.24s var(--ease); }
.wc-page[data-enter='back'] { animation: wc-pop 0.24s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .wc,
  .wc-page[data-enter] { animation: none; }
}
.wc[hidden] { display: none; }
.wc p { margin: 0; }
.wc-head { display: grid; justify-items: center; gap: 0.625rem; padding: 0 0.5rem 1.25rem; text-align: center; }
.wc-face { width: 4rem; height: 4rem; font-size: 1.25rem; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.16); }
.wc-who { display: grid; gap: 0.125rem; min-width: 0; max-width: 100%; }
.wc .wc-name { margin-bottom: 0.125rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.wc-sub { color: var(--ink-3); font-size: 0.8125rem; }
.wc-name,
.wc-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-body,
.wc-stackset,
.wc-form { display: grid; gap: 1rem; }
.wc-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem;
  min-height: 2rem;
  margin: -0.625rem 0 1rem;
}
.wc-back {
  justify-self: start;
  max-width: 100%;
  margin-left: -0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.375rem 0.5rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.wc-back:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.wc-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.wc-title { max-width: 11.5rem; margin: 0; overflow: hidden; color: var(--ink); font-size: 0.875rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wc-sec { display: grid; gap: 0.375rem; }
.wc-sec-head { display: flex; align-items: baseline; gap: 0.75rem; padding: 0 0.75rem; }
.wc-h { flex: 1; margin: 0; color: var(--ink-3); font-size: 0.75rem; font-weight: 500; }
.wc-sec-note { color: var(--ink-3); font-size: 0.75rem; }
.wc-group { display: grid; overflow: hidden; border-radius: 14px; background: #161616; }
.wc-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.625rem;
  padding: 0 0.875rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.wc-row + .wc-row::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0.875rem;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.1);
}
.wc-row-link { width: 100%; cursor: pointer; transition: background 0.15s var(--ease); }
.wc-row-link:hover { background: #1e1e1e; }
.wc-row-link:active { background: #242424; }
.wc-row-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 14px; }
.wc-row-link:disabled { cursor: default; opacity: 0.6; }
.wc-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-stack { display: grid; gap: 0.0625rem; padding: 0.5rem 0; }
.wc-line,
.wc-subline { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-subline { color: var(--ink-3); font-size: 0.75rem; }
.wc-value { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; overflow: hidden; color: var(--ink-3); white-space: nowrap; }
.wc-quiet { color: var(--ink-3); }
.wc-state { color: var(--ink-3); }
.wc-state[data-on='true'] { color: var(--ink-2); }
.wc-id { color: var(--ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.75rem; }
.wc-chev {
  flex: none;
  width: 0.4375rem;
  height: 0.75rem;
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s var(--ease);
}
.wc-chev-back { stroke: currentColor; }
.wc-row-link:hover .wc-chev { transform: translateX(1px); }
.wc-back > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-back:hover .wc-chev-back { transform: translateX(-1px); }
.wc-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.wc-link:hover { color: var(--ink); }
.wc-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.wc-more .wc-label { color: var(--ink-3); }
.wc-action .wc-label { color: var(--ink); font-weight: 500; }
.wc-danger .wc-label { color: #ff6961; }
.wc-danger[data-armed='true'] { background: rgba(255, 105, 97, 0.12); }
.wc-foot-note { margin-top: -0.5rem; padding: 0 0.875rem; color: var(--ink-3); font-size: 0.75rem; line-height: 1.45; }
.wc-body > .wc-foot-note:first-child { margin-top: 0; }
.wc-field { cursor: text; }
.wc-input {
  width: 100%;
  min-height: 2.625rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
}
.wc-input::placeholder { color: var(--ink-3); }
.wc-input:-webkit-autofill,
.wc-input:-webkit-autofill:hover,
.wc-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 100px #161616 inset;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.wc-field:focus-within .wc-input:-webkit-autofill { box-shadow: 0 0 0 100px #1c1c1c inset; }
.wc-field:focus-within { background: #1c1c1c; }
.wc-primary {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 14px;
  background: #f5f5f5;
  color: #000000;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), opacity 0.15s var(--ease);
}
.wc-primary:hover { background: #ffffff; }
.wc-primary:disabled { cursor: default; opacity: 0.55; }
.wc-primary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wc-msg { margin-top: -0.375rem; padding: 0 0.875rem; color: #ff6961; font-size: 0.75rem; line-height: 1.45; }
.wc-msg[data-tone='ok'] { color: var(--ink-2); }
.wc-msg[hidden] { display: none; }
.wc-inline {
  padding: 0.25rem 0.625rem;
  border: 0;
  border-radius: 999px;
  background: #242424;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.wc-inline:hover { background: #2e2e2e; }
.wc-inline[data-armed='true'] { background: rgba(255, 105, 97, 0.16); color: #ff6961; }
.wc-inline:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wc-row[hidden] { display: none; }
.wc-wrap { white-space: normal; line-height: 1.4; }
.wc-choice .wc-stack { white-space: normal; }
.wc-check {
  flex: none;
  width: 0.875rem;
  height: 0.6875rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.wc-choice[aria-checked='true'] .wc-check { opacity: 1; }
.wc-primary-danger { background: #ff6961; color: #000000; }
.wc-primary-danger:hover { background: #ff7b74; }
.wc-primary-danger[data-armed='true'] { background: #ff453a; color: #ffffff; }
.wc-qr { justify-self: center; display: grid; place-items: center; padding: 0.875rem; border-radius: 14px; background: #ffffff; }
.wc-qr img { display: block; width: 9.25rem; height: 9.25rem; }
.wc-key {
  justify-self: center;
  margin-top: -0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: #161616;
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: center;
  word-break: break-all;
  user-select: all;
}
