:root {
  --wemachines-background: rgb(250 250 251);
  --wemachines-background-l-0: rgb(255 255 255);
  --wemachines-background-l-1: rgb(250 250 250);
  --wemachines-background-l-2: rgb(241 241 241);
  --wemachines-background-l-3: rgb(235 235 235);
  --wemachines-border: rgb(214 214 214);
  --wemachines-border-subtle: rgb(237 237 237);
  --wemachines-foreground: rgb(52 52 52);
  --wemachines-foreground-strong: rgb(0 0 0);
  --wemachines-foreground-subtle: rgb(94 94 94);
  --wemachines-foreground-danger: rgb(207 61 37);
  --wemachines-foreground-success: rgb(22 163 74);
  --wemachines-foreground-warning: rgb(184 134 11);
  --wemachines-primary: rgb(10 10 10);
  --wemachines-primary-hover: rgb(38 38 38);
  --wemachines-ai: rgb(10 108 240);
  --wemachines-ai-fill: rgb(30 150 255);
  --wemachines-on-ai-fill: rgb(11 11 15);
  --wemachines-chart-1: rgb(75 91 247);
  --wemachines-chart-2: rgb(250 91 61);
  --wemachines-chart-3: rgb(32 164 133);
  --wemachines-chart-4: rgb(230 165 37);
  --wemachines-chart-5: rgb(250 94 174);
  --wemachines-chart-6: rgb(21 126 69);
  --wemachines-chart-7: rgb(131 41 247);
  --wemachines-chart-8: rgb(230 31 55);
  --wemachines-chart-scale-lo: rgb(214 223 252);
  --wemachines-chart-scale-hi: rgb(26 16 131);
  --wemachines-chart-ordinal-lo: rgb(146 167 247);
  --wemachines-chart-neutral: rgb(240 239 236);
  --wemachines-chart-muted: rgb(137 135 129);
  --sans: -apple-system, BlinkMacSystemFont, Inter, ui-sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
@font-face {
  font-family: 'Inter';
  src: url('https://app.wemachines.com/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('https://app.wemachines.com/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
body {
  margin: 0;
  background: var(--wemachines-background);
  color: var(--wemachines-foreground);
  font: 450 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* -- Dark, for visitors outside WeMachines whose system is dark. Inside WeMachines the
   runtime sets data-wemachines-theme and paints the member's own palette. -- */
:root { color-scheme: light; }
:root[data-wemachines-theme='dark'] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-wemachines-theme]) {
    color-scheme: dark;
    --wemachines-background: rgb(18 18 21);
    --wemachines-background-l-0: rgb(24 24 28);
    --wemachines-background-l-1: rgb(33 33 37);
    --wemachines-background-l-2: rgb(39 39 43);
    --wemachines-background-l-3: rgb(45 45 50);
    --wemachines-border: rgb(48 48 54);
    --wemachines-border-subtle: rgb(33 33 38);
    --wemachines-foreground: rgb(222 222 226);
    --wemachines-foreground-strong: rgb(255 255 255);
    --wemachines-foreground-subtle: rgb(134 135 142);
    --wemachines-foreground-success: rgb(34 197 94);
  }
}

*, *::before, *::after { box-sizing: border-box; corner-shape: squircle; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { min-height: 100dvh; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wemachines-foreground-strong); outline-offset: 2px; }
.i { flex: none; display: block; }

.page { max-width: 1180px; margin: 0 auto; padding: 0 28px 72px; }

/* -- Top -- */
.top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; color: var(--wemachines-foreground-strong); text-decoration: none;
}
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--wemachines-foreground-subtle); }
.dot {
  width: 6px; height: 6px; border-radius: 50%; corner-shape: round;
  background: var(--wemachines-foreground-success);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .35; } }

/* -- Hero -- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px;
  padding: 76px 0 44px;
}
.faces { display: grid; gap: 0; }
.faces-row { display: flex; gap: 10px; }
.faces-row + .faces-row { margin-top: -6px; }
.faces-row:nth-child(even) { padding-left: 31px; }
.face {
  display: block; flex: none; color: inherit; text-decoration: none; border-radius: 50%; corner-shape: round;
  transition: opacity .15s;
}
.face .avatar { outline-color: color-mix(in srgb, var(--wemachines-foreground-strong) 12%, transparent); }
@media (hover: hover) {
  .faces:hover .face { opacity: .55; }
  .faces .face:hover { opacity: 1; }
}
.face-more {
  display: grid; place-items: center; width: 52px; height: 52px;
  background: var(--wemachines-background-l-2); color: var(--wemachines-foreground-subtle);
  font-size: 13px; font-weight: 500;
}
.stack { display: none; }
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .faces { display: none; }
  .stack { display: flex; align-items: center; margin-top: 28px; padding-left: 8px; }
  .stack-face, .stack-more {
    margin-left: -8px; border-radius: 50%; corner-shape: round;
    border: 2px solid var(--wemachines-background); text-decoration: none; color: inherit;
  }
  .stack-face .avatar { display: grid; }
  .stack-more {
    display: grid; place-items: center; height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px;
    background: var(--wemachines-background-l-2); color: var(--wemachines-foreground-subtle);
    font-size: 12px; font-weight: 500;
  }
}
.hero h1 {
  margin: 0; max-width: 13.5em;
  font-size: clamp(36px, 5.6vw, 60px); line-height: 1.04; font-weight: 600;
  letter-spacing: -0.015em; color: var(--wemachines-foreground-strong);
  text-wrap: balance;
}
.lede {
  margin: 22px 0 0; max-width: 34em;
  font-size: 17px; line-height: 1.5; color: var(--wemachines-foreground-subtle);
  text-wrap: pretty;
}
.stats { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 44px 0 0; padding: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 2px; }
.stat dt { font-size: 12px; color: var(--wemachines-foreground-subtle); }
.stat dd {
  margin: 0; font-size: 30px; line-height: 1.1; font-weight: 600;
  letter-spacing: -0.015em; color: var(--wemachines-foreground-strong);
}

/* -- Toolbar -- */
.sentinel { height: 1px; }
.toolbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0;
}
.toolbar::before, .toolbar::after {
  content: ''; position: absolute; left: 50%; width: 100vw; translate: -50% 0; pointer-events: none;
}
.toolbar::before { inset-block: 0; z-index: -1; background: var(--wemachines-background); }
.toolbar::after { bottom: 0; border-bottom: 0.5px solid transparent; transition: border-color .15s; }
.toolbar.is-stuck::after { border-bottom-color: var(--wemachines-border); }

.search { position: relative; flex: 1; max-width: 380px; }
.search .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--wemachines-foreground-subtle); pointer-events: none; }
.search input {
  width: 100%; height: 36px; padding: 0 16px 0 38px;
  border-radius: 999px; corner-shape: round;
  border: 0.5px solid var(--wemachines-border);
  background: var(--wemachines-background-l-0);
  font: inherit; color: var(--wemachines-foreground-strong);
  outline: none; transition: border-color .12s;
  appearance: none;
}
.search input::placeholder { color: var(--wemachines-foreground-subtle); }
.search input:hover, .search input:focus { border-color: var(--wemachines-foreground-subtle); }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { appearance: none; }

.seg {
  display: inline-flex; flex: none; gap: 2px; padding: 3px;
  border-radius: 999px; corner-shape: round;
  background: var(--wemachines-background-l-2);
}
.seg button {
  height: 30px; padding: 0 14px; border: 0; cursor: pointer;
  border-radius: 999px; corner-shape: round;
  background: transparent; color: var(--wemachines-foreground-subtle);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color .12s, color .12s;
}
.seg button:hover { color: var(--wemachines-foreground-strong); }
.seg button[aria-pressed='true'] { background: var(--wemachines-background-l-0); color: var(--wemachines-foreground-strong); }

/* -- Grid -- */
.grid {
  display: grid; gap: 12px; margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px 20px 16px; border-radius: 24px;
  background: var(--wemachines-background-l-0);
  border: 0.5px solid var(--wemachines-border);
  transition: background-color .15s;
}
@media (hover: hover) { .card:hover { background: var(--wemachines-background-l-1); } }
.card-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who { flex: 1; min-width: 0; }
.name, .role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name { font-weight: 500; color: var(--wemachines-foreground-strong); }
.alias { font-weight: 450; color: var(--wemachines-foreground-subtle); }
.role { font-size: 12px; color: var(--wemachines-foreground-subtle); }
.badge {
  flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; corner-shape: round;
  background: var(--wemachines-foreground-strong); color: var(--wemachines-background);
  font-size: 12px; font-weight: 500;
}
.skill {
  margin: 8px 0 0; font-size: 18px; line-height: 1.3; font-weight: 600;
  letter-spacing: -0.015em; color: var(--wemachines-foreground-strong);
  overflow-wrap: anywhere;
}
.desc {
  margin: 0; color: var(--wemachines-foreground-subtle);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metrics { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--wemachines-foreground-subtle); }
.metric { display: inline-flex; align-items: center; gap: 5px; }
.metric .i { width: 13px; height: 13px; }
.quick { position: relative; z-index: 2; display: flex; gap: 2px; margin-right: -6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; padding: 0; cursor: pointer;
  border-radius: 50%; corner-shape: round; background: transparent;
  color: var(--wemachines-foreground-subtle);
  transition: background-color .12s, color .12s;
}
.icon-btn:hover { background: var(--wemachines-background-l-2); color: var(--wemachines-foreground-strong); }
.icon-btn .i { width: 15px; height: 15px; }
.icon-btn:disabled { opacity: .5; cursor: default; }

.avatar {
  position: relative; flex: none; display: grid; place-items: center;
  width: var(--size); height: var(--size); overflow: hidden;
  border-radius: 50%; corner-shape: round;
  background: var(--wemachines-background-l-2);
  outline: 0.5px solid color-mix(in srgb, var(--wemachines-foreground-strong) 10%, transparent);
  outline-offset: -0.5px;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mono { font-size: calc(var(--size) * .36); font-weight: 500; color: var(--wemachines-foreground-subtle); }

.empty { margin: 0; padding: 64px 0; text-align: center; color: var(--wemachines-foreground-subtle); }
.empty[hidden] { display: none; }

/* -- Footer -- */
.foot {
  display: grid; gap: 8px; margin-top: 72px; padding-top: 24px;
  border-top: 0.5px solid var(--wemachines-border);
  font-size: 12px; color: var(--wemachines-foreground-subtle);
}
.foot p { margin: 0; max-width: 60em; }
.foot a { color: var(--wemachines-foreground-strong); text-underline-offset: 2px; }

/* -- Sheet -- */
.sheet {
  width: min(620px, calc(100vw - 24px)); max-width: none; max-height: min(88dvh, 860px);
  margin: auto; padding: 0; border: 0; border-radius: 28px;
  background: var(--wemachines-background-l-0); color: var(--wemachines-foreground);
  overflow: hidden;
  opacity: 0;
  transition: opacity .15s, overlay .15s allow-discrete, display .15s allow-discrete;
}
.sheet[open] { display: flex; flex-direction: column; opacity: 1; }
@starting-style { .sheet[open] { opacity: 0; } }
.sheet::backdrop {
  background: rgb(8 8 10 / 0);
  transition: background-color .15s, overlay .15s allow-discrete, display .15s allow-discrete;
}
.sheet[open]::backdrop { background: rgb(8 8 10 / .4); }
@starting-style { .sheet[open]::backdrop { background: rgb(8 8 10 / 0); } }
.sheet-bar { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 2px; }
.sheet-body { overflow: auto; overscroll-behavior: contain; padding: 30px 30px 24px; }

.d-head { display: flex; align-items: center; gap: 16px; padding-right: 108px; }
.d-who { min-width: 0; }
.d-name { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; color: var(--wemachines-foreground-strong); }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 4px; font-size: 12px; color: var(--wemachines-foreground-subtle); }
.d-meta > span + span::before { content: '\00b7'; margin: 0 7px; }
.sheet-body:focus { outline: none; }
.d-role { margin: 18px 0 0; color: var(--wemachines-foreground); }
.d-skill { margin-top: 22px; padding-top: 22px; border-top: 0.5px solid var(--wemachines-border-subtle); }
.d-skill-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.d-skill h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; color: var(--wemachines-foreground-strong); }
.d-skill code { font: 12px/1.4 var(--mono); color: var(--wemachines-foreground-subtle); }
.d-skill p { margin: 8px 0 0; text-wrap: pretty; }
.d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin: 22px 0 0; }
.tile { padding: 12px 14px; border-radius: 16px; background: var(--wemachines-background-l-1); border: 0.5px solid var(--wemachines-border-subtle); }
.tile dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--wemachines-foreground-subtle); white-space: nowrap; }
.tile dt .i { width: 12px; height: 12px; }
.tile dd { margin: 4px 0 0; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; color: var(--wemachines-foreground-strong); }
.d-notes { margin-top: 22px; }
.label { margin-bottom: 4px; font-size: 12px; color: var(--wemachines-foreground-subtle); }
.d-notes p { margin: 0; color: var(--wemachines-foreground-subtle); text-wrap: pretty; }
.d-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border-radius: 999px; corner-shape: round;
  background: var(--wemachines-background-l-2); color: var(--wemachines-foreground-strong);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .12s;
}
.pill:hover { background: var(--wemachines-background-l-3); }
.pill .i { width: 14px; height: 14px; }
.d-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding-top: 14px; border-top: 0.5px solid var(--wemachines-border-subtle);
  font-size: 12px; color: var(--wemachines-foreground-subtle);
}
.statuses { display: grid; gap: 4px; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status a { color: inherit; text-underline-offset: 2px; }
.d-cautions {
  margin-top: 22px; padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--wemachines-foreground-warning) 7%, var(--wemachines-background-l-0));
  border: 0.5px solid color-mix(in srgb, var(--wemachines-foreground-warning) 22%, transparent);
}
.d-cautions .label { color: var(--wemachines-foreground); font-weight: 500; }
.d-cautions ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.d-cautions li { display: flex; align-items: flex-start; gap: 8px; text-wrap: pretty; }
.d-cautions li .i { width: 14px; height: 14px; margin-top: 3px; color: var(--wemachines-foreground-warning); }
.status.is-checked .i { width: 14px; height: 14px; color: var(--wemachines-foreground-success); }
.ghost {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 12px;
  border: 0; border-radius: 999px; corner-shape: round; cursor: pointer;
  background: transparent; color: var(--wemachines-foreground-subtle);
  font-size: 12px; font-weight: 500; white-space: nowrap;
  transition: background-color .12s, color .12s;
}
.ghost:hover { background: var(--wemachines-background-l-2); color: var(--wemachines-foreground-strong); }
.ghost .i { width: 13px; height: 13px; }

/* -- Small screens -- */
@media (max-width: 680px) {
  .page { padding: 0 16px 56px; }
  .top { height: 60px; }
  .hero { padding: 36px 0 28px; }
  .lede { font-size: 16px; }
  .stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px; margin-top: 28px; }
  .stat dd { font-size: 22px; }
  .toolbar { flex-wrap: wrap; }
  .search { flex-basis: 100%; max-width: none; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .sheet { width: calc(100vw - 16px); max-height: 92dvh; border-radius: 24px; }
  .sheet-bar { position: static; justify-content: flex-end; padding: 10px 10px 0; }
  .sheet-body { padding: 0 20px 18px; }
  .d-head { padding-right: 0; gap: 14px; }
  .d-foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::backdrop { transition: none !important; animation: none !important; }
}
