/* ---------- Christian's profile (white) ---------- */

.agent-sheet { background: #fff; }
.agent-scroll { flex: 1; overflow-y: auto; padding: 16px 16px calc(48px + env(safe-area-inset-bottom)); scrollbar-width: none; }
.agent-scroll::-webkit-scrollbar { display: none; }
.ap-top { display: flex; justify-content: space-between; position: relative; z-index: 2; pointer-events: none; }
.ap-top .round-btn { pointer-events: auto; }
.ap-top .round-btn svg { pointer-events: none; }
.ap-top .round-btn { width: 44px; height: 44px; }
.ap-hero { display: flex; flex-direction: column; align-items: center; margin-top: -30px; }
.ap-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(16, 17, 19, 0.08);
  display: grid;
  place-items: center;
}
.ap-avatar img { width: 62px; height: auto; }
.ap-edit {
  position: absolute;
  right: -6px;
  bottom: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ap-edit svg { width: 15px; height: 15px; stroke-width: 2; }
.ap-name { margin-top: 14px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.ap-status { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.9375rem; color: var(--text-2); }
.ap-dot { width: 18px; height: 18px; border-radius: 50%; background: #22c55e; display: grid; place-items: center; }
.ap-dot svg { width: 12px; height: 12px; fill: #fff; stroke: none; }
.ap-dot.off { width: 9px; height: 9px; background: var(--text-3); }

.ap-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 22px 0 8px;
  padding: 5px;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid var(--border);
}
.ap-tabs button {
  position: relative;
  z-index: 1;
  height: 40px;
  border: 0;
  background: none;
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ap-tabs button[aria-selected="true"] { color: var(--text); }
.ap-tabs svg { width: 21px; height: 21px; }
.ap-ind {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 5);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(16, 17, 19, 0.1);
  transform: translateX(calc(var(--ap, 0) * 100%));
  transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.25, 1);
}
/* Four tabs while the Browser tab is off (browser_agent flag). */
.ap-tabs.n4 { grid-template-columns: repeat(4, 1fr); }
.ap-tabs.n4 .ap-ind { width: calc((100% - 10px) / 4); }

.ap-h { margin: 18px 2px 6px; font-size: 1rem; font-weight: 600; }
.ap-h-big { font-size: 1.25rem; }
.ap-h-row { display: flex; align-items: center; justify-content: space-between; }
.ap-plus {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--pill);
  font-size: 1.25rem; line-height: 1; color: var(--text); cursor: pointer; margin-top: 12px;
}
.ap-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 9px 2px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text);
  text-align: left;
}
button.ap-row { cursor: pointer; }
.ap-icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; }
.ap-icon img { width: 34px; height: 34px; }
.ap-text { flex: 1; min-width: 0; }
.ap-text strong { display: block; font-size: 0.9375rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-text span { display: block; font-size: 0.8125rem; color: var(--text-2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-text small { display: block; font-size: 0.75rem; color: var(--text-3); margin-top: 1px; }
.ap-empty { margin: 6px 2px; font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }

.ap-edit-btn {
  width: 100%; height: 42px; margin-top: 8px; border: 0; border-radius: 999px;
  background: var(--pill); font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--text); cursor: pointer;
}
.ap-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.ap-card {
  aspect-ratio: 1.32;
  border: 0;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: #fff;
  cursor: pointer;
  font: inherit;
}
.ap-card strong { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.01em; }
.ap-card-sub { margin-top: 4px; font: 500 0.625rem ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.18em; opacity: 0.7; }
.ap-card-foot { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; font: 0.8125rem ui-monospace, "SF Mono", Menlo, monospace; opacity: 0.85; }
.ap-card-glyph svg { width: 24px; height: 24px; fill: rgba(255, 255, 255, 0.85); stroke: none; }
.ap-card.soul { background: radial-gradient(120% 90% at 20% 10%, #b7c7cf, #7c95a3 60%, #8a9a86); }
.ap-card.memory { background: radial-gradient(120% 100% at 80% 20%, #2bb7c9, #127a96 55%, #1d4f86); }
