/* Product marks, Command's mark, generative avatars, business monograms and empty-state illustrations (public/ui/marks.js,
   public/ui/illustrations.js). Sizes arrive as --mark-size through CSSOM; colors only from tokens. */

/* Marks are dark brand plates (rounded 14/64 like the UQ house mark); a product-color hairline sits on the plate edge. */
.mark {
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--mark-size, 24px);
  height: var(--mark-size, 24px);
  border-radius: calc(var(--mark-size, 24px) * 0.21875);
  line-height: 0;
  vertical-align: middle;
}
.mark > img { display: block; width: 100%; height: 100%; border-radius: inherit; user-select: none; }
.mark::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mark-color, var(--line-strong)) 55%, transparent);
  pointer-events: none;
}
.mark-team { --mark-color: var(--p-team); }
.mark-intel { --mark-color: var(--p-intel); }
.mark-model { --mark-color: var(--p-model); }
.mark-ready { --mark-color: var(--p-ready); }
.mark-nexus { --mark-color: var(--p-nexus); }
.mark-creator { --mark-color: var(--p-creator); }
.mark-command { --mark-color: var(--accent); }

.mark-avatar { flex: none; display: inline-block; vertical-align: middle; clip-path: circle(50%); }

/* Business monogram: initials on a flat tint of the seed's hue, hairline border, no gradient. */
.mark-monogram {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--mark-size, 28px);
  height: var(--mark-size, 28px);
  border: 1px solid color-mix(in srgb, var(--mark-tint, var(--text-3)) 30%, transparent);
  border-radius: max(var(--r-xs), calc(var(--mark-size, 28px) * 0.22));
  background: color-mix(in srgb, var(--mark-tint, var(--text-3)) 11%, var(--surface));
  color: color-mix(in oklch, var(--mark-tint, var(--text-3)) 55%, var(--text));
  font-family: var(--font-sans);
  font-size: calc(var(--mark-size, 28px) * 0.4);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  vertical-align: middle;
  user-select: none;
}

.mark-illustration { flex: none; display: block; color: var(--text-2); }
