/* The Handle product UI, recreated for the demos from the app's own styles, in the site's colour code (ink = you, violet = handled by AI).
   Every size is in em of the .ui root, so each demo scales as one piece with its column. */

.ui {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.4;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.ui .i { width: 1.2em; height: 1.2em; }
.ui p { margin: 0; }
.ui button { font: inherit; }

/* ---------- Window ---------- */

.ui-window {
  position: relative;
  border-radius: 1.3em;
  background: #f5f5f7;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(12, 12, 16, 0.07), 0 2.6em 5.5em rgba(12, 12, 16, 0.2), 0 0.5em 1.3em rgba(12, 12, 16, 0.06);
}
.ui-chrome {
  display: flex; align-items: center; gap: 0.45em;
  height: 2.6em; padding: 0 1em;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}
.ui-chrome > i { width: 0.72em; height: 0.72em; border-radius: 50%; background: #dcdce2; }
.ui-url { margin: 0 auto; padding: 0.25em 1.1em; border-radius: 999px; background: var(--fill); font-size: 0.74em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-example { flex: none; padding: 0.15em 0.65em; border: 1px solid #e3e5ea; border-radius: 999px; background: #fff; font-size: 0.64em; font-weight: 600; color: #8a909c; }

/* ---------- Shell: sidebar + main ---------- */

.ui-shell { display: grid; grid-template-columns: 14.5em minmax(0, 1fr); }
.ui-side {
  display: flex; flex-direction: column; gap: 0.3em;
  padding: 1.1em 0.85em 1em;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}
.ui-brand { display: flex; align-items: center; gap: 0.7em; margin: 0 0 0.6em; padding: 0.45em; }
.ui-brand-names { display: grid; min-width: 0; }
.ui-brand-names strong { font-size: 0.95em; font-weight: 600; }
.ui-brand-names span { font-size: 0.76em; color: var(--muted); }

.ui-mono {
  display: inline-grid; place-items: center; flex: none;
  width: 2.5em; height: 2.5em; border-radius: 0.75em;
  background: var(--ink); color: #fff;
  font-size: 0.9em; font-weight: 600; letter-spacing: 0.02em;
}
.ui-mono.xs { width: 2em; height: 2em; border-radius: 0.6em; font-size: 0.66em; }

.ui-nav { display: grid; gap: 0.12em; }
.ui-nav-section { margin: 1.3em 0.8em 0.45em; font-size: 0.72em; font-weight: 500; color: var(--muted); }
.ui-nav-item {
  display: flex; align-items: center; gap: 0.75em;
  height: 2.5em; padding: 0 0.75em; border-radius: 0.75em;
  font-size: 0.88em; font-weight: 500;
  transition: background-color 0.3s ease;
}
.ui-nav-item > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-nav-item .i { width: 1.25em; height: 1.25em; color: var(--muted); }
.ui-nav-item.on { background: #fff; box-shadow: var(--shadow); }
.ui-nav-item.on .i { color: var(--ai-strong); }
.ui-badge {
  min-width: 1.75em; height: 1.55em; padding: 0 0.55em; border-radius: 999px;
  background: var(--fill-2); color: var(--ink);
  font-size: 0.8em; font-weight: 600; line-height: 1.55em; text-align: center; font-variant-numeric: tabular-nums;
}
.ui-badge.alert { background: var(--ai-strong); color: #fff; }
.ui-side-foot { display: flex; align-items: center; gap: 0.55em; margin-top: auto; padding: 1em 0.75em 0; font-size: 0.74em; color: var(--muted); }
.ui-side-foot .live-dot { width: 0.6em; height: 0.6em; }

.ui-main { display: grid; gap: 0.95em; align-content: start; min-width: 0; padding: 1.5em 1.7em 1.7em; }

.ui-hero { padding: 1.5em 1.7em; border-radius: 1.15em; background: #fff; box-shadow: var(--shadow); }
.ui-kicker { font-size: 0.82em; font-weight: 500; color: var(--ink-2); }
.ui-hero-title { margin: 0.2em 0 0.15em; font-size: 2.9em; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.ui-hero-lede { font-size: 1em; color: var(--ink-2); }
.ui-hero-summary { display: flex; flex-wrap: wrap; gap: 0.3em 1.7em; margin-top: 1.15em !important; }
.ui-hero-summary > span { display: inline-flex; align-items: baseline; gap: 0.45em; font-size: 0.82em; color: var(--muted); }
.ui-hero-summary strong { font-size: 1.65em; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

.ui-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.8em; }
.ui-tile { display: flex; flex-direction: column; min-width: 0; padding: 1em; border-radius: 1em; background: #fff; box-shadow: var(--shadow); transition: box-shadow 0.4s ease; }
.ui-tile.bump { box-shadow: 0 0 0 2px var(--ai), var(--shadow-lift); }
.ui-tile-top { display: flex; align-items: center; gap: 0.5em; }
.ui-tile-icon { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 0.55em; background: var(--fill); color: var(--ink-2); }
.ui-tile-icon .i { width: 1.1em; height: 1.1em; }
.ui-tile-title { font-size: 0.8em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-tile .chev { margin-left: auto; width: 0.9em; height: 0.9em; color: var(--faint); }

.ui-num { font-weight: 600; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.ui-num.accent { color: var(--ai-text); }
.ui-tile .ui-num { margin: 0.95em 0 0.2em; font-size: 2.3em; }
.ui-tile-label { font-size: 0.78em; color: var(--ink-2); white-space: nowrap; }
.ui-tile-foot { margin-top: 0.95em; padding-top: 0.75em; border-top: 1px solid var(--line); font-size: 0.68em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bumping { animation: bump 0.9s var(--ease); }
@keyframes bump { 0% { color: var(--ai-strong); transform: scale(1.08); } 100% { transform: none; } }

.ui-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.8em; }
.ui-mini { min-width: 0; padding: 1.05em 1.1em 0.9em; border-radius: 1em; background: #fff; box-shadow: var(--shadow); }
.ui-mini-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85em; font-weight: 600; }
.ui-more { font-size: 0.86em; font-weight: 500; color: var(--ai-text); }
.ui-mini-list { display: grid; align-content: start; gap: 0.1em; height: 12.6em; margin-top: 0.55em; overflow: hidden; }
.ui-mini-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.65em; margin: 0 -0.5em; padding: 0.42em 0.5em; border-radius: 0.75em; }
.ui-mini-row .ui-avatar { width: 2.2em; height: 2.2em; }
.ui-row-text { display: grid; min-width: 0; }
.ui-row-text strong { font-size: 0.8em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row-text span { font-size: 0.7em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-age { font-size: 0.66em; color: var(--muted); }

.arrive { animation: arrive 1.7s var(--ease) both; }
@keyframes arrive {
  0% { opacity: 0; transform: translateY(-0.9em); background-color: var(--ai-soft); }
  25% { opacity: 1; transform: none; background-color: var(--ai-soft); }
  100% { background-color: transparent; }
}

/* Pipeline (the product's colours) */
.ui-pipe { display: grid; gap: 0.75em; margin-top: 0.6em; }
.ui-pipe-total { font-size: 0.76em; color: var(--muted); }
.ui-pipe-bar { display: flex; gap: 3px; height: 0.75em; border-radius: 999px; overflow: hidden; background: var(--fill); }
.ui-pipe-part { flex-basis: 0; min-width: 0.4em; transform-origin: left; animation: grow 1s var(--ease) both; }
.ui-pipe-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15em 0.9em; }
.ui-pipe-item { display: flex; align-items: center; gap: 0.5em; padding: 0.22em 0; font-size: 0.72em; color: var(--ink-2); white-space: nowrap; }
.ui-pipe-item strong { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.ui-pipe-dot { flex: none; width: 0.65em; height: 0.65em; border-radius: 50%; }
.st-shipping { background: #d4d7e0; } .st-story { background: #9aa6c4; } .st-live { background: #c9c2ff; }
.st-due { background: var(--ai); } .st-late { background: #d9483b; } .st-done { background: var(--ink); }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- Shared parts ---------- */

.ui-avatar { display: inline-block; flex: none; width: 2.5em; height: 2.5em; border-radius: 50%; overflow: hidden; background: var(--panel-2); }
.ui-avatar svg { display: block; width: 100%; height: 100%; }
.ui-avatar.lg { width: 3.8em; height: 3.8em; }
.ui-avatar.xl { width: 4.8em; height: 4.8em; }

.ui-pill {
  display: inline-flex; align-items: center; flex: none;
  height: 1.75em; padding: 0 0.7em; border-radius: 999px;
  background: var(--fill); color: var(--ink);
  font-size: 0.72em; font-weight: 600; white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.ui-pill.yes { background: var(--yes-soft); color: var(--yes); }
.ui-pill.no { background: var(--no-soft); color: var(--no); }
.ui-pill.review { background: var(--review-soft); color: var(--review); }
.ui-pill.accent { background: var(--ai-soft); color: var(--ai-text); }
.ui-pill.blue { background: #e6eefb; color: #2457b5; }

.ui-chip {
  height: 2.2em; padding: 0 0.95em; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.78em; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.ui-chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ui-chip.on { background: var(--ink); color: #fff; box-shadow: none; }

.ui-switch {
  position: relative; flex: none; display: inline-block;
  width: 3.2em; height: 1.95em; padding: 0; border: 0; border-radius: 999px;
  background: var(--fill-2); cursor: pointer;
  transition: background-color 0.25s ease;
}
.ui-switch i { position: absolute; top: 0.125em; left: 0.125em; width: 1.7em; height: 1.7em; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); transition: transform 0.35s var(--ease-spring); }
.ui-switch.on, .ui-switch[aria-checked="true"] { background: var(--ai); }
.ui-switch.on i, .ui-switch[aria-checked="true"] i { transform: translateX(1.25em); }

.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  height: 2.6em; padding: 0 1em; border: 0; border-radius: 0.65em;
  font-size: 0.86em; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.ui-btn:active, .ui-btn.press { transform: scale(0.95); }
.ui-btn kbd { font-size: 0.8em; }
.ui-btn.yes, .ui-btn.primary { background: var(--ai-strong); color: #fff; }
.ui-btn.yes:hover, .ui-btn.primary:hover { background: var(--ai-deep); }
.ui-btn.yes kbd { background: rgba(255, 255, 255, 0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.ui-btn.no, .ui-btn.ghost { background: var(--fill); color: var(--ink); }
.ui-btn.no:hover, .ui-btn.ghost:hover { background: var(--fill-2); }
.ui-btn.sm { height: 2.3em; padding: 0 0.95em; font-size: 0.74em; }

.ui-thumb { display: block; flex: none; width: 4.4em; height: 4.4em; border-radius: 0.8em; overflow: hidden; background: var(--panel-3); }
.ui-thumb svg { display: block; width: 100%; height: 100%; }

.ui-title { font-size: 2em; font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
.ui-title.sm { font-size: 1.45em; }
.ui-lede { margin-top: 0.25em !important; font-size: 0.84em; color: var(--muted); }
.ui-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 0.8em 1em; flex-wrap: wrap; }
.ui-live-line {
  display: inline-flex; align-items: center; gap: 0.6em; max-width: 100%;
  padding: 0.5em 0.95em; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  font-size: 0.74em; color: var(--ink-2);
}
.ui-live-line > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-live-line .live-dot { width: 0.7em; height: 0.7em; }

.ui-stat { position: relative; min-width: 0; padding: 0.9em 1em; border-radius: 1em; background: #fff; box-shadow: var(--shadow); }
.ui-stat-label { display: flex; align-items: center; gap: 0.5em; font-size: 0.74em; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ui-stat-label::before { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--fill-2); }
.ui-stat.accent .ui-stat-label::before { background: var(--ai); }
.ui-stat .ui-num { margin: 0.5em 0 0.28em; font-size: 2.05em; }
.ui-stat.accent .ui-num { color: var(--ai-text); }
.ui-stat-hint { font-size: 0.68em; color: var(--muted); }

.ui-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 0.75em; background: var(--fill); }
.ui-seg button {
  height: 2.2em; padding: 0 0.85em; border: 0; border-radius: 0.55em;
  background: transparent; color: var(--ink-2); font-size: 0.74em; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.ui-seg button:hover { color: var(--ink); }
.ui-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(12, 12, 16, 0.16); }

.ui-card { position: relative; padding: 1.25em; border-radius: 1.3em; background: #fff; box-shadow: var(--shadow-lift), 0 0 0 1px rgba(12, 12, 16, 0.04); }

/* ---------- To do (the problem) ---------- */

.todo {
  position: relative; max-width: 30em; margin-left: auto;
  padding: 1.4em 1.4em 1.1em; border-radius: 1.6em; background: #fff;
  box-shadow: var(--shadow-float);
  font-size: clamp(13px, 1.25vw, 16px);
}
.todo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; padding-bottom: 0.9em; border-bottom: 1px solid var(--line); }
.todo-head strong { display: block; font-size: 1.55em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.todo-head div span { font-size: 0.82em; color: var(--muted); }
.todo-date { font-size: 0.8em; font-weight: 600; color: var(--ai-text); }
.todo-list { position: relative; height: 22.4em; margin: 0.6em 0 0; padding: 0; list-style: none; overflow: hidden; }
.todo-list::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.todo-item {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 0.7em;
  height: 2.5em; padding: 0 0.7em; border-radius: 0.8em;
  font-size: 0.95em;
  transform: translateY(calc(var(--y, 0) * 2.75em));
  transition: transform 0.75s var(--ease), opacity 0.5s ease, background-color 0.45s ease;
}
.todo-item.enter { opacity: 0; transform: translateY(-2.75em); }
.todo-check { display: grid; place-items: center; flex: none; width: 1.3em; height: 1.3em; border: 2px solid var(--line-strong); border-radius: 50%; transition: background-color 0.35s ease, border-color 0.35s ease; }
.todo-check .i { width: 0.85em; height: 0.85em; color: #fff; stroke-width: 3; opacity: 0; transition: opacity 0.3s ease; }
.todo-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-chip { flex: none; padding: 0.25em 0.65em; border-radius: 999px; font-size: 0.72em; font-weight: 600; background: var(--panel-2); color: var(--muted); transition: background-color 0.35s ease, color 0.35s ease; }
.todo-item.urgent { background: #fff7ef; }
.todo-item.urgent .todo-chip { background: var(--review-soft); color: var(--review); }
.todo-item.slid { opacity: 0.5; }
.todo-item.slid .todo-chip { background: var(--fill-2); color: var(--ink-2); }
.todo-item.handled { opacity: 1; background: var(--ai-soft); }
.todo-item.handled .todo-check { background: var(--ai); border-color: var(--ai); }
.todo-item.handled .todo-check .i { opacity: 1; }
.todo-item.handled .todo-chip { background: var(--ai-strong); color: #fff; }
.todo-foot { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding-top: 0.8em; border-top: 1px solid var(--line); font-size: 0.82em; color: var(--muted); }
.todo-tag { font-weight: 600; color: var(--ai-text); }

/* ---------- Discovery ---------- */

.disc .ui-page { display: grid; gap: 0.95em; padding: 1.4em 1.5em 1.5em; }
.disc-markets { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em; }
.disc-rule { margin-left: 0.4em; font-size: 0.72em; color: var(--muted); animation: fade-up 0.4s var(--ease) both; }
.ui-funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75em; }
.ui-funnel .ui-stat:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -0.62em; z-index: 1;
  width: 0.45em; height: 0.45em; border-top: 2px solid var(--faint); border-right: 2px solid var(--faint);
  transform: translateY(-50%) rotate(45deg);
}
.disc-body { display: grid; grid-template-columns: 9.6em minmax(0, 1fr); gap: 0.8em; }
.disc-seeds { display: grid; align-content: start; gap: 0.55em; padding: 0.9em 0.75em; border-radius: 1em; background: #fff; box-shadow: var(--shadow); }
.disc-seeds-label { font-size: 0.68em; font-weight: 600; color: var(--muted); }
.disc-seed-row { display: grid; gap: 0.35em; }
.disc-seed { display: flex; align-items: center; gap: 0.5em; min-width: 0; padding: 0.35em; border-radius: 0.75em; transition: background-color 0.35s ease; }
.disc-seed .ui-avatar { width: 2.3em; height: 2.3em; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px transparent; transition: box-shadow 0.35s ease; }
.disc-seed span { font-size: 0.7em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-seed.on { background: var(--ai-soft); }
.disc-seed.on .ui-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ai); }
.ui-feed { height: 18.6em; padding: 0.2em 0.95em; border-radius: 1em; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.ui-prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0.75em; margin: 0 -0.6em; padding: 0.75em 0.6em; border-radius: 0.9em; border-top: 1px solid var(--line); }
.ui-prow:first-child { border-top-color: transparent; }
.ui-prow .ui-avatar { width: 2.6em; height: 2.6em; }
.ui-prow-main { display: grid; gap: 0.12em; min-width: 0; }
.ui-prow-top { display: flex; align-items: baseline; gap: 0.45em; min-width: 0; }
.ui-prow-user { font-family: var(--ig); font-size: 0.82em; font-weight: 600; color: var(--ink-deep); white-space: nowrap; }
.ui-prow-name { font-size: 0.76em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-prow-meta { font-size: 0.7em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-prow-meta b { font-weight: 600; color: var(--ai-text); }
.ui-prow-bio { font-size: 0.74em; line-height: 1.4; color: #2c2c31; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-prow-side { padding-top: 0.2em; }

.float-card {
  position: absolute; z-index: 3; left: -9%; bottom: -22%;
  width: 21em; padding: 1em 1em 0.6em; border-radius: 1.2em; background: #fff;
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(12, 12, 16, 0.05);
  font-size: clamp(10px, 1.75cqi, 13px);
  transform: rotate(-1.5deg);
}
.fc-head strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48; font-size: 1.15em; color: var(--ai-strong); }
.fc-head span { font-size: 0.72em; color: var(--muted); }
.fc-list { display: grid; height: 9.2em; margin-top: 0.5em; overflow: hidden; align-content: start; }
.fc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6em; margin: 0 -0.5em; padding: 0.4em 0.5em; border-radius: 0.75em; }
.fc-row .ui-avatar { width: 2.2em; height: 2.2em; }

/* ---------- Vetting ---------- */

.vet-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6em 1em; flex-wrap: wrap; padding: 0.85em 1.3em; background: #fff; border-bottom: 1px solid var(--line); }
.vet-brief { display: flex; align-items: center; gap: 0.6em; min-width: 0; font-size: 0.74em; }
.vet-brief span { flex: none; color: var(--muted); }
.vet-brief b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vet-settled { display: flex; align-items: center; gap: 0.6em; font-size: 0.74em; color: var(--muted); }
.vet-settled strong { color: var(--ink); font-weight: 600; }
.vet-bar { display: flex; gap: 2px; width: 7em; height: 0.55em; border-radius: 999px; overflow: hidden; }
.vet-bar .y { flex: 34; background: #3aa06c; } .vet-bar .n { flex: 63; background: #cfcfd6; } .vet-bar .r { flex: 3; min-width: 3px; background: #e8891c; }
.vet-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2em; padding: 1.25em 1.3em 1.3em; }
.vet-profile { min-width: 0; }
.vet-who { display: flex; align-items: center; gap: 0.9em; }
.vet-names { display: grid; gap: 0.2em; min-width: 0; }
.vet-name { display: flex; align-items: baseline; gap: 0.5em; flex-wrap: wrap; font-family: var(--ig); }
.vet-name strong { font-size: 1em; font-weight: 600; color: var(--ink-deep); }
.vet-name span { font-size: 0.8em; color: var(--muted); }
.vet-counts { display: flex; gap: 1.1em; font-size: 0.74em; color: var(--ink-2); }
.vet-counts b { font-weight: 600; color: var(--ink); }
.vet-bio { min-height: 2.9em; margin: 0.8em 0 !important; font-size: 0.78em; line-height: 1.45; color: #2c2c31; }
.vet-tiles { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-radius: 0.85em; overflow: hidden; }
.vet-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel-2); animation: fade-up 0.45s var(--ease) both; animation-delay: calc(var(--k) * 45ms); }
.vet-tile svg { display: block; width: 100%; height: 100%; }
.vet-scan { position: absolute; left: 0; right: 0; top: 0; height: 32%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(91, 76, 255, 0), rgba(91, 76, 255, 0.32) 78%, var(--ai) 100%); opacity: 0; transform: translateY(-110%); }
.vet-tiles.scanning .vet-scan { animation: scan-tall 1.5s var(--ease) both; }
@keyframes scan-tall { 0% { opacity: 1; transform: translateY(-110%); } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(330%); } }
.det { position: absolute; z-index: 1; border: 2px solid var(--ai); border-radius: 0.45em; opacity: 0; transform: scale(1.3); transition: opacity 0.3s ease, transform 0.45s var(--ease-spring); }
.det.warn { border-color: #e8891c; }
.det b { position: absolute; left: -2px; top: calc(100% + 3px); padding: 0.15em 0.45em; border-radius: 0.35em; background: var(--ai-strong); color: #fff; font-size: 0.58em; font-weight: 600; white-space: nowrap; }
.det.warn b { background: var(--review); }
.det.on { opacity: 1; transform: none; }

.vet-side { display: grid; align-content: start; gap: 0.75em; min-width: 0; }
.ui-ai-head { display: grid; gap: 0.12em; padding: 0.75em 0.9em; border-radius: 0.9em; background: var(--fill); font-size: 0.76em; transition: background-color 0.4s ease, color 0.4s ease; }
.ui-ai-head strong { font-size: 1.18em; font-weight: 600; }
.ui-ai-head.yes { background: var(--yes-soft); color: var(--yes); }
.ui-ai-head.no { background: var(--no-soft); color: var(--no); }
.ui-ai-head.review { background: var(--review-soft); color: var(--review); }
.ui-ai-head.checking strong::after { content: "…"; animation: blink 1s steps(1) infinite; }
.vet-criteria { display: grid; margin: 0; padding: 0; list-style: none; }
.vet-crit { display: grid; grid-template-columns: 1.35em minmax(0, 1fr) auto; align-items: center; gap: 0.55em; padding: 0.3em 0; border-bottom: 1px solid var(--line); font-size: 0.72em; opacity: 0.4; transition: opacity 0.3s ease; }
.vet-crit:last-child { border-bottom: 0; }
.vet-crit.done { opacity: 1; }
.vet-crit.skip { opacity: 0.32; }
.vet-crit .mark { display: grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--fill); color: var(--muted); }
.vet-crit .mark .i { width: 0.85em; height: 0.85em; stroke-width: 2.6; opacity: 0; }
.vet-crit.pass .mark { background: var(--yes-soft); color: var(--yes); }
.vet-crit.fail .mark { background: var(--no-soft); color: var(--no); }
.vet-crit.warn .mark { background: var(--review-soft); color: var(--review); }
.vet-crit.pass .mark .i, .vet-crit.fail .mark .i, .vet-crit.warn .mark .i { opacity: 1; }
.vet-crit .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vet-crit .val { color: var(--muted); white-space: nowrap; }
.vet-crit.fail .val { color: var(--no); font-weight: 600; }
.vet-crit.warn .val { color: var(--review); font-weight: 600; }
.vet-decide { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; }
.vet-decide .ui-btn { height: 2.7em; opacity: 0.45; pointer-events: none; }
.vet-decide.ask .ui-btn { opacity: 1; pointer-events: auto; }
.vet-decide.ask .ui-btn.yes { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(76, 59, 240, 0.45); } 50% { box-shadow: 0 0 0 0.45em rgba(76, 59, 240, 0); } }
.vet-note { min-height: 1.4em; font-size: 0.7em; color: var(--muted); }
.vet-note.good { color: var(--ai-text); font-weight: 600; }

/* ---------- Meet: phone + comment picker ---------- */

.meet-stage { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(14px, 2vw, 24px); align-items: center; }
.phone {
  position: relative; justify-self: end;
  width: 100%; max-width: 20.5em; aspect-ratio: 9 / 18.6;
  border-radius: 2.7em; background: var(--ink-deep);
  box-shadow: var(--shadow-float);
  font-size: clamp(10px, 1.5cqi, 13px);
}
.phone::before { content: ""; position: absolute; top: 1.15em; left: 50%; z-index: 2; width: 5.4em; height: 1.45em; border-radius: 999px; background: var(--ink-deep); transform: translateX(-50%); }
.phone-screen { position: absolute; inset: 0.55em; padding: 2.9em 0.95em 1em; border-radius: 2.2em; background: #fff; overflow: hidden; font-family: var(--ig); color: var(--ink-deep); }
.ig-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.85em; font-size: 1.05em; font-weight: 700; }
.ig-top .i { width: 1.2em; height: 1.2em; }
.ig-profile { display: flex; align-items: center; gap: 0.9em; }
.ig-profile .ui-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ai-200); }
.ig-stats { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.ig-stats div { display: grid; }
.ig-stats b { font-size: 0.98em; }
.ig-stats span { font-size: 0.72em; color: #5b6170; }
.ig-bio { display: grid; gap: 0.1em; margin: 0.75em 0; font-size: 0.8em; line-height: 1.35; }
.ig-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4em; margin-bottom: 0.85em; }
.ig-follow, .ig-msg { display: grid; place-items: center; height: 2.35em; border-radius: 0.65em; background: #efefef; font-size: 0.82em; font-weight: 600; transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; }
.ig-follow { background: #0095f6; color: #fff; }
.ig-follow.tap { transform: scale(0.94); }
.ig-follow.following { background: #efefef; color: var(--ink-deep); }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.ig-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #f3f3f3; }
.ig-tile svg { display: block; width: 100%; height: 100%; }
.ig-heart { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.ig-heart .i { width: 2.5em; height: 2.5em; fill: #fff; stroke: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)); }
.ig-tile.liked .ig-heart { animation: heart-pop 1.1s var(--ease) both; }
.ig-tile .ig-liked { position: absolute; right: 0.35em; bottom: 0.35em; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ai-strong); transform: scale(0); transition: transform 0.4s var(--ease-spring) 0.7s; }
.ig-tile .ig-liked .i { width: 0.9em; height: 0.9em; fill: currentColor; stroke: none; }
.ig-tile.liked .ig-liked { transform: scale(1); }
@keyframes heart-pop { 0% { opacity: 0; transform: scale(0.3); } 30% { opacity: 1; transform: scale(1.15); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.ig-comment {
  position: absolute; left: 0.7em; right: 0.7em; bottom: 0.7em;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.55em; align-items: start;
  padding: 0.75em 0.8em; border-radius: 1.1em; background: #fff;
  box-shadow: 0 12px 30px rgba(8, 8, 12, 0.2), 0 0 0 1px rgba(8, 8, 12, 0.05);
  font-size: 0.8em; line-height: 1.38;
  transform: translateY(150%); transition: transform 0.6s var(--ease);
}
.ig-comment.show { transform: none; }
.ig-comment p { margin: 0; min-height: 2.7em; }
.ig-posted { grid-column: 2; display: inline-flex; align-items: center; gap: 0.3em; font-family: var(--font); font-size: 0.86em; font-weight: 600; color: var(--ai-text); opacity: 0; transition: opacity 0.3s ease; }
.ig-posted .i { width: 1em; height: 1em; stroke-width: 2.6; }
.ig-comment.posted .ig-posted { opacity: 1; }

/* The post the phone opens: it slides in over the profile, gets a double-tap like, and the comment lands under it. */
.ig-post { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 0.5em; padding: 2.9em 0.95em 1em; background: #fff; transform: translateX(104%); transition: transform 0.6s var(--ease); }
.ig-post.open { transform: none; }
.ig-post-bar { display: flex; align-items: center; gap: 0.35em; font-size: 0.86em; font-weight: 700; }
.ig-post-bar .back { width: 1.1em; height: 1.1em; transform: rotate(180deg); }
.ig-post-head { display: flex; align-items: center; gap: 0.5em; font-size: 0.78em; }
.ig-post-head .ui-avatar { width: 2.1em; height: 2.1em; }
.ig-post-head .i { width: 1.1em; height: 1.1em; margin-left: auto; }
.ig-post-img { position: relative; margin: 0 -0.95em; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f3f3; }
.ig-post-tile, .ig-post-tile svg { display: block; width: 100%; height: 100%; }
.ig-bigheart { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.ig-bigheart .i { width: 4.6em; height: 4.6em; fill: #fff; stroke: none; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3)); }
.ig-post-img.liked .ig-bigheart { animation: heart-pop 1.1s var(--ease) both; }
.ig-post-actions { display: flex; align-items: center; gap: 0.85em; }
.ig-post-actions .i { width: 1.35em; height: 1.35em; }
.ig-like { display: grid; }
.ig-like.on .i { fill: #ff3040; stroke: #ff3040; animation: like-bump 0.45s var(--ease-spring); }
@keyframes like-bump { 50% { transform: scale(1.25); } }
.ig-post-likes { font-size: 0.74em; font-weight: 600; }
.ig-post-cap { margin: 0; font-size: 0.74em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ig-post .ig-comment { position: relative; left: auto; right: auto; bottom: auto; margin-top: 0.15em; box-shadow: 0 0 0 1px rgba(8, 8, 12, 0.06); background: #fafafa; transform: translateY(0.6em); opacity: 0; transition: opacity 0.4s ease, transform 0.5s var(--ease); }
.ig-post .ig-comment.show { opacity: 1; transform: none; }
.ig-tile.tap { transform: scale(0.93); }
.ig-tile { transition: transform 0.2s ease; }

.picker { min-width: 0; }
.picker-post { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85em; align-items: center; }
.picker-meta { font-size: 0.7em; color: var(--muted); }
.picker-meta strong { color: var(--ink); font-weight: 600; }
.picker-caption { margin-top: 0.25em !important; font-size: 0.8em; line-height: 1.4; }
.picker-q { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6em; flex-wrap: wrap; margin: 1em 0 0.55em; font-size: 0.82em; }
.picker-q span { font-size: 0.86em; color: var(--muted); }
.picker-q kbd { font-size: 0.78em; }
.picker-options { display: grid; gap: 0.4em; margin: 0; padding: 0; list-style: none; }
.picker-opt {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.6em;
  width: 100%; padding: 0.55em 0.65em; border: 1px solid var(--line-strong); border-radius: 0.85em;
  background: #fff; color: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.25s ease, opacity 0.3s ease, transform 0.35s var(--ease), box-shadow 0.25s ease;
  animation: fade-up 0.45s var(--ease) backwards; animation-delay: calc(var(--k) * 60ms);
}
.picker-opt:hover { border-color: var(--ai); }
/* The module only pops up once there's a post to comment on: after the phone has followed, opened and liked it.
   (Faded out rather than removed, so nothing around it moves.) */
.picker { transition: opacity 0.5s var(--ease), transform 0.8s var(--ease-spring), filter 0.5s var(--ease); }
.picker.away { opacity: 0; transform: translateY(1em) scale(0.97); filter: blur(4px); pointer-events: none; transition-duration: 0.35s; }
.picker.away .picker-opt { animation: none; }
.picker-opt kbd { font-size: 0.7em; }
.opt-text { font-size: 0.78em; line-height: 1.35; }
.opt-chance { display: flex; align-items: center; gap: 0.45em; }
.opt-meter { width: 3.4em; height: 0.45em; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.opt-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ai); transition: width 0.9s var(--ease); }
.opt-val { width: 2.5em; text-align: right; font-size: 0.72em; color: var(--muted); font-variant-numeric: tabular-nums; }
.picker.loading .opt-meter i { width: 40% !important; background: var(--line-strong); animation: chance-loading 1.2s ease-in-out infinite alternate; }
.picker.loading .opt-val { color: transparent; }
@keyframes chance-loading { from { transform: translateX(-60%); } to { transform: translateX(160%); } }
/* the likeliest is only hinted (its chance in bold), so the one real highlight is the comment that gets picked */
.picker-opt.likely .opt-val { color: var(--ink); font-weight: 600; }
.picker-opt.chosen { background: var(--ai-soft); border-color: var(--ai); transform: scale(1.015); }
.picker.decided .picker-opt:not(.chosen) { opacity: 0.42; }
.picker.decided .picker-opt:not(.chosen):hover { opacity: 0.9; }
.opt-posted { display: none; align-items: center; gap: 0.3em; font-size: 0.72em; font-weight: 600; color: var(--ai-text); white-space: nowrap; }
.opt-posted .i { width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.picker-opt.posted .opt-chance { display: none; }
.picker-opt.posted .opt-posted { display: inline-flex; animation: fade-up 0.4s var(--ease) both; }
.picker-foot { display: flex; align-items: center; gap: 0.75em; margin-top: 0.9em; padding: 0.7em 0.8em; border-radius: 0.95em; background: var(--panel-3); }
.picker-foot strong { display: block; font-size: 0.8em; }
.picker-foot span { font-size: 0.7em; color: var(--muted); }

/* ---------- Outreach sequence ---------- */

.seq-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8em 1em; flex-wrap: wrap; padding-bottom: 1em; border-bottom: 1px solid var(--line); }
.seq-who { display: flex; align-items: center; gap: 0.7em; }
.seq-who strong { display: block; font-family: var(--ig); font-size: 0.88em; }
.seq-who span { font-size: 0.72em; color: var(--muted); }
.seq-mode { display: flex; align-items: center; gap: 0.65em; }
.seq-mode-label { font-size: 0.76em; font-weight: 600; }
.seq-steps { position: relative; display: grid; margin: 0.9em 0 0; padding: 0; list-style: none; }
.seq-step { position: relative; display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; align-items: center; gap: 0.8em; padding: 0.5em 0; opacity: 0.38; transition: opacity 0.4s ease; }
.seq-step::before { content: ""; position: absolute; left: 1.2em; top: 50%; width: 2px; height: 100%; margin-left: -1px; background: var(--line); }
.seq-step:last-child::before { display: none; }
.seq-step.done::before { background: rgba(91, 76, 255, 0.45); }
.seq-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #f0f0f3; color: var(--muted); transition: background-color 0.3s ease, color 0.3s ease, transform 0.45s var(--ease-spring); }
.seq-dot .i { width: 1.1em; height: 1.1em; }
.seq-step.active, .seq-step.done { opacity: 1; }
.seq-step.active .seq-dot { background: var(--ai-soft); color: var(--ai-text); transform: scale(1.1); }
.seq-step.done .seq-dot { background: var(--ai); color: #fff; }
.seq-step.reply.done .seq-dot { background: var(--ink); }
.seq-body { min-width: 0; }
.seq-body strong { display: block; font-size: 0.82em; font-weight: 600; }
.seq-body > span { font-size: 0.7em; color: var(--muted); }
.seq-body q { display: block; width: fit-content; max-width: 100%; margin-top: 0.35em; padding: 0.45em 0.8em; border-radius: 1em 1em 1em 0.3em; background: var(--panel); font-size: 0.74em; quotes: none; }
.seq-step.reply q { background: #efefef; font-family: var(--ig); }
.seq-state { display: flex; align-items: center; gap: 0.4em; font-size: 0.7em; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seq-step.done .seq-state { color: var(--ai-text); }
.seq-step.reply.done .seq-state { color: var(--ink); }
.seq-state .ui-btn { font-size: 1em; height: 2.2em; }
.seq-state .ui-btn.ask { animation: nudge 1.6s ease-in-out infinite; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 2.1em; margin-top: 0.35em; padding: 0 0.75em; border-radius: 999px; background: var(--panel); }
.wave i { width: 2px; height: calc(var(--h, 0.5) * 1.3em); border-radius: 2px; background: var(--ai-strong); }
.seq-step.playing .wave i { animation: wave 0.7s ease-in-out infinite alternate; animation-delay: calc(var(--k, 0) * -0.09s); }
.wave b { margin-left: 0.55em; font-size: 0.72em; font-weight: 600; color: var(--ink-2); }
@keyframes wave { from { transform: scaleY(0.35); } to { transform: scaleY(1.1); } }

/* ---------- Collaborations ---------- */

.collab-top { display: flex; align-items: center; gap: 0.8em 1.6em; flex-wrap: wrap; padding: 1em 1.3em; background: #fff; border-bottom: 1px solid var(--line); }
.collab-top .ui-pipe { flex: 1; min-width: 15em; margin: 0; }
.collab-top .ui-pipe-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collab-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1em; padding: 1.2em 1.3em 1.3em; }
.collab-sheet { min-width: 0; padding: 1.1em 1.15em; border-radius: 1.05em; background: #fff; box-shadow: var(--shadow); }
.collab-who { display: flex; align-items: center; gap: 0.7em; }
.collab-who > div { display: grid; min-width: 0; }
.collab-who strong { font-family: var(--ig); font-size: 0.88em; }
.collab-who div span { font-size: 0.7em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collab-who .ui-pill { margin-left: auto; }
.ui-progress { display: grid; gap: 0.35em; margin: 0.95em 0 0.35em; }
.ui-progress-track { height: 0.42em; border-radius: 999px; background: var(--fill); overflow: hidden; }
.ui-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ai); transition: width 0.8s var(--ease); }
.ui-progress-label { font-size: 0.68em; color: var(--muted); }
.ui-timeline { margin: 0.3em 0 0; padding: 0; list-style: none; }
.ui-step { position: relative; display: grid; grid-template-columns: 1em minmax(0, 1fr); align-items: center; gap: 0.85em; padding: 0.4em 0; }
.ui-step::before { content: ""; position: absolute; left: 0.5em; top: 50%; width: 2px; height: 100%; margin-left: -1px; background: var(--line); }
.ui-step:last-child::before { display: none; }
.ui-step.done::before { background: rgba(91, 76, 255, 0.4); }
.ui-step-dot { position: relative; width: 1em; height: 1em; border: 2px solid var(--line-strong); border-radius: 50%; background: #fff; transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.ui-step.done .ui-step-dot { border-color: var(--ai); background: var(--ai); box-shadow: inset 0 0 0 2.5px #fff; }
.ui-step.today .ui-step-dot { border-color: var(--ai-strong); box-shadow: 0 0 0 0.3em rgba(91, 76, 255, 0.22); }
.ui-step-text { display: grid; min-width: 0; transition: opacity 0.3s ease; }
.ui-step-text strong { font-size: 0.8em; font-weight: 600; }
.ui-step-text span { font-size: 0.68em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-step:not(.done):not(.today) .ui-step-text { opacity: 0.5; }

.collab-side { display: grid; align-content: start; gap: 0.75em; min-width: 0; }
.order-card, .track-card, .approve-card {
  padding: 0.85em 0.95em; border-radius: 1.05em; background: #fff; box-shadow: var(--shadow);
  opacity: 0.32; transform: translateY(0.4em) scale(0.98);
  transition: opacity 0.5s ease, transform 0.55s var(--ease), box-shadow 0.4s ease;
}
.order-card.on, .track-card.on, .approve-card.on { opacity: 1; transform: none; }
.order-card.flash, .approve-card.ask { box-shadow: 0 0 0 2px var(--ai), var(--shadow-lift); }
.oc-top { display: flex; align-items: center; gap: 0.6em; }
.oc-top > div { display: grid; min-width: 0; }
.oc-icon { display: grid; place-items: center; flex: none; width: 2.1em; height: 2.1em; border-radius: 0.6em; background: var(--ai-soft); color: var(--ai-text); }
.oc-icon .i { width: 1.1em; height: 1.1em; }
.oc-top strong { font-size: 0.8em; }
.oc-top div span { font-size: 0.66em; color: var(--muted); }
.oc-top .ui-pill { margin-left: auto; }
.oc-line { display: flex; justify-content: space-between; gap: 0.8em; margin-top: 0.55em; padding-top: 0.55em; border-top: 1px solid var(--line); font-size: 0.7em; color: var(--muted); }
.oc-line > span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.oc-addr { display: inline-flex; align-items: center; gap: 0.3em; }
.oc-addr .i { width: 1.05em; height: 1.05em; color: var(--yes); stroke-width: 2.4; }
.tc-file { display: flex; align-items: center; gap: 0.5em; font-size: 0.76em; font-weight: 600; }
.tc-file .i { width: 1.25em; height: 1.25em; color: var(--ai-text); }
.tc-file b { margin-left: auto; font-weight: 500; color: var(--muted); }
.tc-fan { display: grid; gap: 0.25em; margin-top: 0.55em; }
.tc-row { display: flex; align-items: center; gap: 0.5em; font-size: 0.68em; opacity: 0; transform: translateX(-0.8em); transition: opacity 0.35s ease, transform 0.45s var(--ease); }
.tc-row.on { opacity: 0.4; transform: none; }
.tc-row em { color: var(--muted); }
.tc-row.me { margin: 0.15em -0.45em; padding: 0.4em 0.45em; border-radius: 0.65em; background: var(--ai-soft); box-shadow: inset 0 0 0 1px rgba(91, 76, 255, 0.22); }
.tc-row.me.on { opacity: 1; }
.tc-row.me span { color: var(--ink); }
.tc-row.me em { display: inline-flex; align-items: center; padding: 0.2em 0.6em; border-radius: 999px; background: var(--ai-strong); color: #fff; }
.tc-row .ui-avatar { width: 1.9em; height: 1.9em; }
.tc-row span { font-family: var(--ig); font-weight: 600; }
.tc-row em { margin-left: auto; font-family: var(--font); font-style: normal; font-weight: 600; letter-spacing: 0; }
.ac-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; font-size: 0.7em; color: var(--muted); }
.ac-head .ui-pill { font-size: 1em; }
.ac-text { margin: 0.55em 0 !important; padding: 0.55em 0.8em; border-radius: 1em 1em 1em 0.3em; background: var(--panel); font-size: 0.76em; line-height: 1.4; }
.ac-actions { display: flex; justify-content: flex-end; gap: 0.4em; }
.ac-actions .ui-btn { pointer-events: none; }
.approve-card.ask [data-approve-btn] { pointer-events: auto; animation: nudge 1.6s ease-in-out infinite; }
.approve-card.approved .ac-actions .ui-btn.ghost { display: none; }
.ac-note { margin-top: 0.45em !important; font-size: 0.64em; color: var(--muted); text-align: right; }

/* ---------- Content capture ---------- */

.cap-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.cap-head strong { display: block; font-size: 0.95em; }
.cap-head div span { font-size: 0.72em; color: var(--muted); }
.cap-rings { display: flex; gap: 0.75em; margin: 1em 0; overflow: hidden; }
.cap-ring { display: grid; justify-items: center; gap: 0.25em; flex: none; width: 5.1em; font-size: 0.68em; color: var(--muted); text-align: center; }
.cap-ring-av { --left: 70; position: relative; width: 4.6em; height: 4.6em; padding: 3px; border-radius: 50%; background: conic-gradient(var(--ai) calc(var(--left) * 1%), var(--fill-2) 0); transition: transform 0.35s var(--ease-spring); }
.cap-ring-av .ui-avatar { width: 100%; height: 100%; border: 2.5px solid #fff; }
.cap-ring.saving .cap-ring-av { transform: scale(1.08); }
.cap-check { position: absolute; right: -0.15em; bottom: -0.15em; display: grid; place-items: center; width: 1.65em; height: 1.65em; border: 2px solid #fff; border-radius: 50%; background: var(--ai-strong); color: #fff; transform: scale(0); transition: transform 0.4s var(--ease-spring); }
.cap-check .i { width: 0.95em; height: 0.95em; stroke-width: 2.8; }
.cap-ring.saved .cap-check { transform: scale(1); }
.cap-ring b { font-family: var(--ig); font-size: 1.05em; font-weight: 600; color: var(--ink); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-lib { padding: 0.9em; border-radius: 1.05em; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line); }
.cap-folder { display: flex; align-items: center; gap: 0.6em; }
.cap-folder > div { display: grid; }
.cap-folder-icon { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 0.65em; background: #fff; box-shadow: var(--shadow); }
.cap-folder strong { font-size: 0.8em; }
.cap-folder div span { font-size: 0.66em; color: var(--muted); }
.cap-count { margin-left: auto; font-size: 0.7em; font-weight: 600; color: var(--ai-text); font-variant-numeric: tabular-nums; }
.cap-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.45em; margin-top: 0.8em; }
/* an invisible slot per capture: the library keeps its full size from the start, and each story lands in its place as it's ticked off */
.cap-slot { position: relative; aspect-ratio: 9 / 14; }
.cap-file { position: absolute; inset: 0; border-radius: 0.5em; overflow: hidden; box-shadow: var(--shadow); animation: drop-in 0.7s var(--ease-spring) both; }
.cap-file svg { display: block; width: 100%; height: 100%; }
.cap-file span { position: absolute; left: 0.35em; right: 0.35em; bottom: 0.35em; padding: 0.1em 0.35em; border-radius: 0.3em; background: rgba(8, 8, 12, 0.55); color: #fff; font-size: 0.48em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-1.4em) scale(0.8); } to { opacity: 1; transform: none; } }
.cap-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.7em 1em; flex-wrap: wrap; margin-top: 1em; }
.cap-deliv { display: flex; flex-wrap: wrap; gap: 0.35em; }
.deliv { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.38em 0.7em; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 0.68em; font-weight: 600; transition: background-color 0.3s ease, color 0.3s ease; }
.deliv .i { width: 1em; height: 1em; stroke-width: 2.6; opacity: 0.35; }
.deliv.done { background: var(--ai-soft); color: var(--ai-text); }
.deliv.done .i { opacity: 1; }
.cap-repost { display: flex; align-items: center; gap: 0.6em; font-size: 0.74em; font-weight: 600; }
.cap-repost .ui-switch { font-size: 1.1em; }
.cap-reposted {
  position: absolute; right: 1.2em; top: -1.1em; z-index: 2;
  display: flex; align-items: center; gap: 0.5em; padding: 0.5em 0.95em 0.5em 0.55em;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.74em; font-weight: 600;
  box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(0.7em) scale(0.9); transition: opacity 0.3s ease, transform 0.5s var(--ease-spring);
}
.capture.reposting .cap-reposted { opacity: 1; transform: none; }

/* ---------- Messages (Instagram-like) ---------- */

.msgs-grid { display: grid; grid-template-columns: 15.5em minmax(0, 1fr); height: 31em; background: #fff; }
.msgs-list { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.msgs-list-head { display: grid; gap: 0.25em; padding: 1.1em 1.05em 0.6em; }
.msgs-title { font-size: 1.3em; font-weight: 600; letter-spacing: -0.01em; }
.msgs-status { font-size: 0.7em; color: var(--muted); }
.ui-search { display: flex; align-items: center; gap: 0.45em; height: 2.3em; margin-top: 0.35em; padding: 0 0.75em; border-radius: 0.65em; background: var(--fill); font-size: 0.74em; color: var(--muted); }
.ui-search .i { width: 1.1em; height: 1.1em; }
.msgs-rows { flex: 1; overflow: hidden; font-family: var(--ig); }
.msgs-row { display: flex; align-items: center; gap: 0.65em; padding: 0.55em 1.05em; transition: background-color 0.3s ease; }
.msgs-row.on { background: var(--panel); }
.msgs-row .ui-avatar { width: 2.6em; height: 2.6em; }
.msgs-row-text { display: grid; flex: 1; min-width: 0; }
.msgs-row-name { font-size: 0.8em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs-row-line { font-size: 0.7em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs-row.unread .msgs-row-name { font-weight: 700; }
.msgs-row.unread .msgs-row-line { color: var(--ink-deep); font-weight: 600; }
.msgs-dot { flex: none; width: 0.6em; height: 0.6em; border-radius: 50%; background: #0095f6; }
.msgs-chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; font-family: var(--ig); }
.msgs-chat-head { display: flex; align-items: center; gap: 0.7em; padding: 0.8em 1em; border-bottom: 1px solid #f0f0f3; }
.msgs-chat-names { display: grid; flex: 1; min-width: 0; }
.msgs-chat-names strong { font-size: 0.9em; font-weight: 700; color: #03061e; }
.msgs-chat-names span { font-size: 0.7em; color: #808792; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-pill { display: inline-flex; align-items: center; gap: 0.45em; height: 2.2em; padding: 0 0.85em; border-radius: 999px; background: #f1f1f3; color: #03061e; font-size: 0.7em; font-weight: 600; white-space: nowrap; }
.chat-pill .i { width: 1.15em; height: 1.15em; }
.msgs-thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5em; min-height: 0; padding: 0.9em 1em 0.6em; overflow: hidden; }
.bub { align-self: flex-start; max-width: 80%; padding: 0.55em 0.9em; border-radius: 1.2em; background: #f0eff2; color: #03061e; font-size: 0.78em; line-height: 1.4; animation: bub-in 0.45s var(--ease) both; }
.bub.ours { align-self: flex-end; background: #1b7cef; color: #fff; }
.bub.voice { display: flex; align-items: center; gap: 0.55em; padding: 0.45em 0.8em 0.45em 0.45em; }
.bub-play { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: #fff; color: #03061e; }
.bub-play .i { width: 0.9em; height: 0.9em; }
.bub-wave { display: flex; align-items: center; gap: 2px; height: 1.6em; }
.bub-wave i { width: 2px; height: calc(var(--h, 0.5) * 1.5em); border-radius: 2px; background: #03061e; opacity: 0.5; }
.bub.voice.playing .bub-wave i { animation: wave 0.6s ease-in-out infinite alternate; animation-delay: calc(var(--k, 0) * -0.08s); opacity: 0.8; }
.bub-time { font-size: 0.85em; color: #5b6170; }
.transcript { align-self: flex-start; max-width: 86%; padding: 0.5em 0.8em; border: 1px dashed var(--line-strong); border-radius: 0.9em; background: #fff; font-family: var(--font); font-size: 0.72em; line-height: 1.45; color: #4b5563; animation: bub-in 0.45s var(--ease) both; }
.transcript b { margin-right: 0.35em; font-weight: 600; color: var(--ai-text); }
@keyframes bub-in { from { opacity: 0; transform: translateY(0.5em) scale(0.97); } to { opacity: 1; transform: none; } }

.suggest { display: grid; gap: 0.6em; margin: 0 0.8em 0.8em; padding: 0.8em; border: 1px solid #eef0f2; border-radius: 1.25em; background: #fbfbfc; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08); font-family: var(--font); }
.suggest-head { display: flex; align-items: center; gap: 0.6em; }
.suggest-head .i { color: var(--ai-strong); }
.suggest-head strong { display: block; font-size: 0.8em; }
.suggest-head span { font-size: 0.66em; color: #808792; }
.suggest-box { position: relative; min-height: 3.9em; padding: 0.6em 0.8em; border: 1px solid #e6e8ec; border-radius: 1em; background: #fff; font-size: 0.78em; line-height: 1.45; color: #03061e; }
.suggest.writing .suggest-box { color: transparent; }
.suggest.writing .suggest-box::before, .suggest.writing .suggest-box::after {
  content: ""; position: absolute; left: 0.8em; height: 0.6em; border-radius: 999px;
  background: linear-gradient(90deg, #f1f0fb 0%, #dcd8ff 40%, #f1f0fb 80%); background-size: 250% 100%;
  animation: shimmer 1.2s linear infinite;
}
.suggest.writing .suggest-box::before { top: 0.85em; right: 12%; }
.suggest.writing .suggest-box::after { top: 2.15em; right: 42%; }
.suggest.writing { box-shadow: 0 0 22px rgba(91, 76, 255, 0.25), 0 10px 30px rgba(16, 24, 40, 0.08); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: var(--ai-strong); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.suggest-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; flex-wrap: wrap; }
.suggest-tools { display: flex; flex-wrap: wrap; gap: 0.3em; }
.suggest-tools button { height: 2.25em; padding: 0 0.8em; border: 1px solid #e6e8ec; border-radius: 999px; background: #fff; color: #03061e; font-size: 0.68em; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.suggest-tools button:hover, .suggest-tools button.on { border-color: var(--ai); background: var(--ai-soft); color: var(--ai-text); }
.suggest-send { display: inline-flex; align-items: center; gap: 0.45em; height: 2.5em; padding: 0 1.1em; border: 0; border-radius: 999px; background: #161616; color: #fff; font-size: 0.74em; font-weight: 600; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease; }
.suggest-send:hover { background: #000; }
.suggest-send.press, .suggest-send:active { transform: scale(0.93); }
.suggest-send .i { width: 1.1em; height: 1.1em; }

/* ---------- Community ---------- */

.comm-head { display: flex; justify-content: space-between; align-items: center; gap: 0.7em 1em; flex-wrap: wrap; }
.comm-head strong { display: block; font-size: 0.95em; }
.comm-head > div > span { font-size: 0.72em; color: var(--muted); }
.comm-plats { display: flex; flex-wrap: wrap; gap: 0.35em; }
.comm-plats span { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.38em 0.7em; border-radius: 999px; background: var(--fill); font-size: 0.66em; font-weight: 600; }
.comm-plats .i { width: 1.15em; height: 1.15em; }
.comm-stream { display: grid; align-content: start; gap: 0.5em; height: 21.5em; margin-top: 1em; overflow: hidden; }
.cm { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65em; padding: 0.7em 0.8em; border-radius: 1em; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line); animation: bub-in 0.5s var(--ease) both; transition: opacity 0.4s ease; }
.cm.out { opacity: 0; }
.cm .ui-avatar { width: 2.3em; height: 2.3em; }
.cm-top { display: flex; align-items: center; gap: 0.4em; font-size: 0.68em; color: var(--muted); }
.cm-top b { font-family: var(--ig); font-weight: 600; color: var(--ink); }
.cm-top .i { width: 1.15em; height: 1.15em; }
.cm-text { margin: 0.2em 0 0 !important; font-family: var(--ig); font-size: 0.78em; }
.cm-tag { display: inline-flex; align-items: center; gap: 0.35em; margin-top: 0.45em; padding: 0.32em 0.7em; border-radius: 999px; font-size: 0.66em; font-weight: 600; opacity: 0; transform: translateY(0.3em); transition: opacity 0.35s ease, transform 0.4s var(--ease); }
.cm-tag .i { width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.cm.tagged .cm-tag { opacity: 1; transform: none; }
.cm-tag.ai { background: var(--ai-strong); color: #fff; }
.cm-tag.human { background: var(--ink); color: #fff; }
.cm-reply { display: none; margin-top: 0.4em; padding-left: 0.7em; border-left: 2px solid var(--ai); font-size: 0.72em; color: var(--ink-2); }
.cm.tagged .cm-reply { display: block; animation: fade-up 0.4s var(--ease) both; }
.comm-slack {
  position: absolute; right: -5%; bottom: -12%; z-index: 3;
  width: 21em; padding: 0.85em 0.95em; border-radius: 1.1em; background: #fff;
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(12, 12, 16, 0.06);
  opacity: 0; transform: translateY(1.2em) rotate(2deg) scale(0.96);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-spring);
}
.community.slack-on .comm-slack { opacity: 1; transform: rotate(1.5deg); }
.slack-head { display: flex; align-items: center; gap: 0.35em; font-size: 0.76em; }
.slack-head .i { width: 1.1em; height: 1.1em; }
.slack-head span { margin-left: auto; font-size: 0.9em; color: var(--muted); }
.slack-msg { display: flex; gap: 0.6em; margin-top: 0.6em; }
.slack-msg .ui-mono { background: var(--ink); }
.slack-msg b { font-size: 0.76em; }
.slack-time { font-size: 0.66em; color: var(--muted); }
.slack-msg p { margin-top: 0.15em !important; font-size: 0.72em; line-height: 1.42; }

/* ---------- Applications ---------- */

.apps-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.apps-head strong { display: block; font-size: 0.95em; }
.apps-head div span { font-size: 0.72em; color: var(--muted); }
.apps-queue { position: relative; height: 7.6em; margin: 1em 0 1.1em; }
.app-card {
  position: absolute; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75em; align-items: center;
  padding: 0.85em 0.95em; border-radius: 1.05em; background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transform: translateY(calc(var(--n) * 0.65em)) scale(calc(1 - var(--n) * 0.045));
  transform-origin: top center; z-index: calc(10 - var(--n));
  opacity: calc(1 - var(--n) * 0.25);
  transition: transform 0.7s var(--ease), opacity 0.5s ease;
}
.app-card.leave { transform: translateY(7em) scale(0.7); opacity: 0; }
.app-card .ui-avatar { width: 2.6em; height: 2.6em; }
.app-top { display: flex; align-items: baseline; gap: 0.5em; flex-wrap: wrap; }
.app-top strong { font-family: var(--ig); font-size: 0.82em; }
.app-src { font-size: 0.66em; font-weight: 600; color: var(--muted); }
.app-steps { display: flex; flex-wrap: wrap; gap: 0.3em; margin-top: 0.4em; }
.app-steps span { padding: 0.25em 0.6em; border-radius: 999px; background: var(--fill); color: var(--muted); font-size: 0.62em; font-weight: 600; transition: background-color 0.3s ease, color 0.3s ease; }
.app-steps span.on { background: var(--ai-soft); color: var(--ai-text); }
.app-steps span.on.final { background: var(--ai-strong); color: #fff; }
.apps-buckets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5em; }
.bucket { display: grid; gap: 0.2em; padding: 0.8em 0.85em; border-radius: 0.95em; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.35s ease, transform 0.4s var(--ease-spring); }
.bucket span { font-size: 0.66em; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bucket b { font-size: 1.55em; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bucket.bump { background: var(--ai-soft); transform: scale(1.05); }
.bucket[data-b="no"] b { color: var(--muted); }

/* ---------- Reporting ---------- */

.report-page { display: grid; gap: 0.85em; padding: 1.2em 1.3em 1.4em; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.report-head div > span { font-size: 0.72em; color: var(--muted); }
.report-export { display: inline-flex; align-items: center; gap: 0.45em; height: 2.4em; padding: 0 1em; border-radius: 0.75em; background: #161a24; color: #fff; font-size: 0.72em; font-weight: 600; }
.report-export .i { width: 1.1em; height: 1.1em; }
.report-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6em; }
.rt { display: grid; align-content: start; gap: 0.3em; min-width: 0; padding: 0.8em 0.9em; border-radius: 0.95em; background: #fff; box-shadow: var(--shadow); }
.rt-label { font-size: 0.66em; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt strong { font-size: 1.45em; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta { justify-self: start; padding: 0.2em 0.55em; border-radius: 999px; font-size: 0.62em; font-weight: 600; }
.delta.up { background: #e6f6ec; color: #13703a; }
.report-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.6em; }
.report-card { min-width: 0; padding: 0.9em 1em; border-radius: 0.95em; background: #fff; box-shadow: var(--shadow); }
.rc-title { font-size: 0.76em; font-weight: 600; }
.rc-title.second { margin-top: 0.9em; }
.usual { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 0.55em; height: 10.5em; margin-top: 1.6em; padding-bottom: 2.1em; }
.usual-line { position: absolute; left: -0.2em; right: -0.2em; bottom: calc(2.1em + (100% - 2.1em) / 2.6); border-top: 1.5px dashed rgba(12, 12, 16, 0.45); }
.rc-key { display: inline-flex; align-items: center; gap: 0.4em; margin-left: 0.5em; font-size: 0.85em; font-weight: 500; color: var(--muted); }
.rc-key i { display: inline-block; width: 1.4em; border-top: 1.5px dashed rgba(12, 12, 16, 0.55); }
.usual-bar { position: relative; height: calc(var(--v) / 2.6 * 100%); border-radius: 0.45em 0.45em 0.15em 0.15em; background: var(--mist); transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease); transition-delay: calc(var(--k) * 90ms); }
.usual-bar.hot { background: var(--ai); }
.usual-bar b { position: absolute; left: 50%; top: -1.6em; transform: translateX(-50%); font-size: 0.62em; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease; transition-delay: calc(var(--k) * 90ms + 0.7s); }
.usual-bar.hot b { color: var(--ai-text); }
.usual-bar .ui-avatar { position: absolute; left: 50%; bottom: -2.05em; width: 1.6em; height: 1.6em; transform: translateX(-50%); }
.usual.on .usual-bar { transform: none; }
.usual.on .usual-bar b { opacity: 1; }
.again { display: grid; margin-top: 0.45em; }
.again-row { display: flex; align-items: center; gap: 0.5em; padding: 0.32em 0; border-top: 1px solid var(--line); font-size: 0.72em; }
.again-row:first-child { border-top: 0; }
.again-row .ui-avatar { width: 1.8em; height: 1.8em; }
.again-row strong { font-family: var(--ig); font-weight: 600; }
.again-row em { margin-left: auto; font-family: var(--font); font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--ai-text); white-space: nowrap; }
.praise { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.5em; }
.praise span { display: inline-flex; gap: 0.35em; padding: 0.32em 0.65em; border-radius: 999px; background: var(--ai-soft); color: var(--ai-text); font-size: 0.66em; font-weight: 600; animation: fade-up 0.4s var(--ease) both; animation-delay: calc(var(--k) * 80ms); }
.praise span b { font-weight: 500; opacity: 0.75; }
.praise span.neg { background: var(--fill); color: var(--muted); }
.report-summary {
  position: absolute; right: 1.2em; bottom: 1.2em; z-index: 2;
  width: 19.5em; padding: 0.95em 1.05em; border-radius: 1.1em; background: #fff;
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(12, 12, 16, 0.06);
  transform: translateY(150%) rotate(3deg); transition: transform 0.85s var(--ease-spring);
}
.report.summary-on .report-summary { transform: rotate(-1.5deg); }
.rs-head { display: flex; align-items: center; gap: 0.45em; font-size: 0.72em; }
.rs-head .i { width: 1.2em; height: 1.2em; color: var(--ai-text); }
.rs-head span { margin-left: auto; color: var(--muted); }
.rs-title { margin: 0.45em 0 0.35em !important; font-family: var(--serif); font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48; font-size: 1.05em; line-height: 1.25; color: var(--ai-strong); }
.report-summary ul { display: grid; gap: 0.2em; margin: 0; padding-left: 1.1em; font-size: 0.7em; color: var(--ink-2); }

/* ---------- Sales impact ---------- */

.impact-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6em 1em; flex-wrap: wrap; }
.impact-head strong { display: block; font-size: 0.95em; }
.impact-head div > span { font-size: 0.72em; color: var(--muted); }
.impact-legend { display: flex; flex-wrap: wrap; gap: 0.4em 0.9em; font-size: 0.68em; color: var(--muted); }
.impact-legend span { display: inline-flex; align-items: center; gap: 0.4em; }
.k-sessions { display: inline-block; width: 1.1em; height: 2px; background: var(--ink); }
.k-sales { display: inline-block; width: 0.8em; height: 0.8em; border-radius: 0.2em; background: var(--ai-200); }
.k-post { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--ai-strong); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ai-strong); }
.impact-chart-wrap { position: relative; height: 15em; margin: 1.2em 0 0; }
.impact-chart { display: block; width: 100%; height: 100%; overflow: visible; clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(0.45, 0, 0.2, 1); }
.impact.drawn .impact-chart { clip-path: inset(-10% -2% -10% 0); }
.ic-grid line { stroke: rgba(12, 12, 16, 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ic-sales { fill: var(--ai-200); opacity: 0.75; }
.ic-sessions { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.impact-axis { position: absolute; left: 0; right: 0; bottom: -1.7em; height: 1.2em; }
.impact-axis span { position: absolute; transform: translateX(-50%); font-size: 0.6em; color: var(--muted); white-space: nowrap; }
.impact-pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; bottom: 0; transform: translate(-50%, 50%) scale(0); transition: transform 0.5s var(--ease-spring); transition-delay: calc(var(--k) * 0.15s + 1.2s); }
.impact.drawn .pin { transform: translate(-50%, 50%) scale(1); }
.pin .ui-avatar { display: block; width: 1.8em; height: 1.8em; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ai-strong); }
.pin::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: var(--stem); border-left: 1.5px dashed var(--ai-strong); }
.impact-tip { position: absolute; z-index: 2; width: 13.5em; padding: 0.7em 0.8em; border: 1px solid #e6e8ee; border-radius: 0.85em; background: #fff; box-shadow: 0 12px 30px rgba(16, 24, 40, 0.14); opacity: 0; transform: translateY(0.4em); transition: opacity 0.35s ease, transform 0.45s var(--ease), left 0.6s var(--ease), top 0.6s var(--ease); pointer-events: none; }
.impact-tip.on { opacity: 1; transform: none; }
.it-day { font-size: 0.66em; font-weight: 600; color: var(--muted); }
.it-row { display: flex; align-items: center; gap: 0.45em; font-size: 0.74em; }
.it-row strong { font-variant-numeric: tabular-nums; }
.it-row span { color: var(--muted); }
.it-note { margin-top: 0.25em; font-size: 0.66em; font-weight: 600; }
.impact-foot { display: flex; flex-wrap: wrap; gap: 0.45em; margin-top: 2.6em; }
.tag { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.42em 0.8em; border-radius: 999px; font-size: 0.68em; font-weight: 600; }
.tag .i { width: 1.15em; height: 1.15em; }
.tag.attr { background: var(--ai-soft); color: var(--ai-text); }
.tag.corr { background: var(--fill); color: var(--ink-2); }

/* ---------- Content insights ---------- */

.insights { min-height: 22em; }
.ins-q { display: flex; align-items: center; gap: 0.55em; height: 3.3em; padding: 0 0.45em 0 1em; border-radius: 999px; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ins-q > .i { color: var(--ai-strong); }
.ins-input { min-width: 0; font-size: 0.86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-caret { flex: none; width: 1.5px; height: 1.15em; margin-left: -0.3em; background: var(--ai-strong); animation: blink 1s steps(1) infinite; }
.ins-ask { display: grid; place-items: center; flex: none; width: 2.4em; height: 2.4em; margin-left: auto; border-radius: 50%; background: var(--ai-strong); color: #fff; transition: transform 0.25s var(--ease); }
.ins-ask .i { width: 1.1em; height: 1.1em; }
.ins-ask.press { transform: scale(0.85); }
.ins-chips { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.7em; }
.ins-chips button { padding: 0.45em 0.85em; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 0.7em; font-weight: 500; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.ins-chips button:hover, .ins-chips button.on { border-color: var(--ai); background: var(--ai-soft); color: var(--ai-text); }
.ins-a { min-height: 7.2em; margin-top: 1.05em; font-size: 0.86em; line-height: 1.6; }
.ins-a b { font-weight: 600; color: var(--ai-text); }
.ins-a .w { animation: fade-up 0.3s var(--ease) both; display: inline; }
.ins-ev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55em; margin-top: 0.8em; }
.ev { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.55em; padding: 0.5em; border-radius: 0.95em; background: var(--panel-3); animation: bub-in 0.5s var(--ease) both; animation-delay: calc(var(--k) * 110ms); }
.ev .ui-thumb { width: 2.9em; height: 3.6em; border-radius: 0.55em; }
.ev strong { display: block; font-size: 1em; color: var(--ai-text); }
.ev span { display: block; font-size: 0.64em; line-height: 1.3; color: var(--muted); }

/* ---------- Agencies ---------- */

/* One fixed height for every view, so switching clients never resizes the window. */
.agency-grid { display: grid; grid-template-columns: 12em minmax(0, 1fr); height: 30em; background: #fff; }
/* The workspace list: a labelled sidebar, like any team tool. Each client has a monogram, its name and
   what's open; the one you're looking at is lifted out in white, its monogram in ink. */
.agency-rail { display: flex; flex-direction: column; gap: 0.2em; padding: 0.95em 0.6em; border-right: 1px solid var(--line); background: var(--panel-3); }
.rail-title { margin: 0 0.6em 0.45em; font-size: 0.64em; font-weight: 600; color: var(--muted); }
.rail-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.55em; width: 100%; padding: 0.42em 0.5em; border: 0; border-radius: 0.7em; background: transparent; color: var(--ink-2); text-align: left; font: inherit; cursor: pointer; transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease; }
.rail-item:hover { background: rgba(12, 12, 16, 0.04); }
.rail-item.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 2px 8px rgba(12, 12, 16, 0.06); }
.rail-mono { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 0.55em; background: var(--panel-deep); color: var(--ink-2); font-size: 0.64em; font-weight: 700; transition: background-color 0.2s ease, color 0.2s ease; }
.rail-item.on .rail-mono { background: var(--ink); color: #fff; }
.rail-name { font-size: 0.72em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* In a narrow column the list folds down to its monograms. */
@container (max-width: 520px) {
  .agency-grid { grid-template-columns: 3.8em minmax(0, 1fr); }
  .rail-title, .rail-name, .rail-count { display: none; }
  .rail-item { grid-template-columns: auto; justify-content: center; padding: 0.4em 0; }
}
.rail-count { min-width: 1.6em; padding: 0.1em 0.4em; border-radius: 999px; background: var(--fill-2); color: var(--muted); font-size: 0.6em; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.agency-main { min-width: 0; padding: 1.1em 1.2em; overflow: hidden; }
.agency-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8em; flex-wrap: wrap; }
.agency-head div > span { font-size: 0.72em; color: var(--muted); }
.agency-rows { display: grid; margin-top: 0.9em; }
.ag-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.7em; padding: 0.62em 0.2em; border-top: 1px solid var(--line); animation: bub-in 0.45s var(--ease) both; animation-delay: calc(var(--k) * 60ms); }
.ag-row:first-child { border-top: 0; }
.ag-client { padding: 0.3em 0.55em; border-radius: 0.45em; background: var(--panel-deep); color: var(--ink-2); font-size: 0.62em; font-weight: 700; white-space: nowrap; }
.ag-text { display: grid; min-width: 0; }
.ag-text strong { font-size: 0.8em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-text span { font-size: 0.68em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-who { display: flex; align-items: center; gap: 0.35em; font-size: 0.66em; color: var(--muted); white-space: nowrap; }
.ag-who i { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--panel); color: var(--ink); font-style: normal; font-size: 0.95em; font-weight: 700; }
/* where each item stands, in the page's colour code: violet when Handle took care of it, black when it's waiting on you */
.ag-state { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.34em 0.75em; border-radius: 999px; font-size: 0.62em; font-weight: 600; white-space: nowrap; }
.ag-state.ai { background: var(--ai-soft); color: var(--ai-text); }
.ag-state.ai::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ai-grad); }
.ag-state.you { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(12, 12, 16, 0.16); }
.ag-state.you::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ink); }
@container (max-width: 520px) {
  .ag-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ag-who { display: none; }
}

/* ---------- B2B ---------- */

.b2b-head { display: flex; justify-content: space-between; align-items: center; gap: 0.7em 1em; flex-wrap: wrap; }
.b2b-head strong { display: block; font-size: 0.95em; }
.b2b-head div > span { font-size: 0.72em; color: var(--muted); }
.b2b-rows { display: grid; gap: 0.45em; margin-top: 1em; }
.b2b-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75em; padding: 0.75em 0.8em; border-radius: 1em; background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line); animation: flip-in 0.6s var(--ease) both; animation-delay: calc(var(--k) * 80ms); }
@keyframes flip-in { from { opacity: 0; transform: perspective(600px) rotateX(-50deg) translateY(0.5em); } to { opacity: 1; transform: none; } }
.b2b-icon { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 0.75em; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.b2b-icon .i { width: 1.3em; height: 1.3em; }
.b2b-row .ui-avatar { width: 2.6em; height: 2.6em; }
.b2b-text { display: grid; min-width: 0; }
.b2b-text strong { font-size: 0.82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2b-text span { font-size: 0.68em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2b-status { padding: 0.32em 0.7em; border-radius: 999px; background: var(--ai-soft); color: var(--ai-text); font-size: 0.64em; font-weight: 600; white-space: nowrap; }
.b2b-status.to-sales { background: var(--ink); color: #fff; }

/* ---------- Detect art (proof) ---------- */

.det-art svg { display: block; width: 100%; height: 100%; }

/* ---------- Narrow demos ---------- */

@container (max-width: 600px) {
  .feature-demo > .ui { font-size: clamp(10.5px, 2.7cqi, 13px); }
  .disc-body { grid-template-columns: minmax(0, 1fr); }
  .disc-seeds { display: none; }
  .ui-funnel .ui-stat-hint { display: none; }
  .vet-grid { grid-template-columns: minmax(0, 1fr); }
  .vet-brief { display: none; }
  .collab-grid { grid-template-columns: minmax(0, 1fr); }
  .collab-top .ui-pipe-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msgs-grid { grid-template-columns: minmax(0, 1fr); height: 33em; }
  .msgs-list { display: none; }
  .report-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-main { grid-template-columns: minmax(0, 1fr); }
  .report-summary { left: 1em; right: 1em; bottom: 1em; width: auto; }
  .float-card { position: relative; left: auto; bottom: auto; width: auto; margin-top: 1em; transform: none; }
  .comm-slack { position: relative; right: auto; bottom: auto; width: auto; margin-top: 0.8em; transform: none; }
  .community.slack-on .comm-slack { transform: none; }
  .apps-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-ev { grid-template-columns: minmax(0, 1fr); }
  .cap-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero-app .ui-shell { grid-template-columns: minmax(0, 1fr); }
  .hero-app .ui-side { display: none; }
  .hero-app { --ui-size: clamp(8.5px, 2.4vw, 12px); }
  .hero-app .ui-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-app .ui-tile:nth-child(n + 4) { display: none; }
  .hero-app .ui-split { grid-template-columns: minmax(0, 1fr); }
  .hero-app .ui-split .ui-mini:last-child { display: none; }
  .hero-app .ui-mini-list { height: 9.6em; }
  .meet-stage { grid-template-columns: minmax(0, 1fr); }
  .phone { justify-self: center; max-width: 18em; }
}

/* Phones: see mobile.css, loaded after this file. */
