/* Wizard share sheet (core/share-sheet.js). Appearance v1 bridge: --wz-* roles alias the live skin tokens, never a palette. */
.wos-share {
  --wz-text: var(--ink, #f3efff); --wz-text-secondary: var(--ink-2, #b9b0d8); --wz-text-muted: var(--ink-3, #7d74a3);
  --wz-border: var(--line-2, rgba(205, 190, 255, .24)); --wz-accent: var(--violet-2, #b99bff);
  --wz-surface: color-mix(in srgb, var(--bg, #05030c) 92%, var(--ink, #f3efff) 8%);
  --wz-surface-raised: color-mix(in srgb, var(--ink, #f3efff) 10%, transparent);
  --wz-accent-soft: color-mix(in srgb, var(--violet-2, #b99bff) 18%, transparent);
  position: fixed; inset: 0; z-index: 250; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(3, 1, 10, .5); opacity: 0; transition: opacity 150ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.wos-share.on { opacity: 1; }
.wos-share .shs-b {
  width: 100%; max-width: 560px; max-height: 80vh; overflow-y: auto; padding: 8px 10px calc(12px + var(--safe-b, 0px));
  border-radius: 20px 20px 0 0; background: var(--wz-surface); color: var(--wz-text);
  border-top: 1px solid var(--wz-border, var(--line-2, rgba(185, 155, 255, .22)));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); translate: 0 24px; transition: translate 180ms var(--ease, ease);
}
.wos-share.on .shs-b { translate: 0 0; }
html[data-shell="desktop"] .wos-share { align-items: center; }
html[data-shell="desktop"] .wos-share .shs-b { border-radius: 18px; border: 1px solid var(--wz-border, var(--line-2, rgba(185, 155, 255, .22))); padding-bottom: 12px; }
.wos-share .shs-t { padding: 8px 6px 2px; font-size: 15px; font-weight: 750; }
.wos-share .shs-prev { margin: 2px 6px 6px; font-size: 13px; line-height: 1.35; color: var(--wz-text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wos-share .shs-preview { display: flex; align-items: center; gap: 8px; margin: 4px 6px; }
.wos-share .shs-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.wos-share .shs-sub { margin: 10px 6px 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--wz-text-muted); }
.wos-share .shs-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.wos-share .shs-row::-webkit-scrollbar { display: none; }
.wos-share button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.wos-share .shs-agent, .wos-share .shs-person, .wos-share .shs-app {
  flex: 0 0 auto; min-width: 80px; max-width: 112px; min-height: 84px; /* a one-word name (Philosopher) never splits */ display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 2px; border-radius: 14px;
}
.wos-share .shs-agent:active, .wos-share .shs-person:active, .wos-share .shs-app:active, .wos-share .shs-other:active,
.wos-share .shs-agent:focus-visible, .wos-share .shs-person:focus-visible, .wos-share .shs-app:focus-visible, .wos-share .shs-other:focus-visible { background: var(--wz-accent-soft); outline: none; }
@media (hover: hover) { .wos-share .shs-agent:not(:disabled):hover, .wos-share .shs-person:hover, .wos-share .shs-app:hover, .wos-share .shs-other:hover { background: var(--wz-accent-soft); } }
/* Agents: each agent's own sigil and hue (WosAgents.sigil); a stopped agent stays visible but can't be picked. */
.wos-share .shs-agent:disabled { opacity: .45; cursor: default; }
.wos-share .shs-agent .shs-ic { border-radius: 50%; }
.wos-share .shs-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, #8f63ff) 22%, transparent); color: var(--c, #b99bff); }
.wos-share .shs-ic .sgi { width: 62%; height: 62%; }
.wos-share .shs-nm { max-width: 100%; font-size: var(--wz-text-sm, .75rem); font-weight: 600; line-height: 1.2; text-align: center; overflow: hidden; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wos-share .shs-other {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 12px 8px; border-radius: 14px;
  font-size: 15px; font-weight: 650; text-align: left; border-top: 1px solid var(--wz-border, var(--line, rgba(185, 155, 255, .14)));
}
.wos-share .shs-oi { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--wz-surface-raised, rgba(255, 255, 255, .06)); }
.wos-share .shs-oi svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* People identity colours are name-derived, not skin chrome. Fixed lightness keeps white initials legible on either skin. */
.wos-share .shs-av {
  --wz-person-avatar: oklch(48% .1 var(--h, 260)); --wz-person-initials: white;
  position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wz-person-avatar); color: var(--wz-person-initials); font-size: var(--wz-text-md, 1.0625rem); font-weight: 750;
}
.wos-share .shs-badge { position: absolute; right: -4px; bottom: -4px; }
.wos-share .shs-badge .shs-ic { width: 22px; height: 22px; border-radius: 7px; box-shadow: 0 0 0 2px var(--wz-surface); }
