/* PATTERNS §20: hosted equivalents of the admin React Attio kit (§14–16). */
.attio-root {
  --ws-tab-indicator: 2px; /* design-token-exempt: active tab underline and keyboard focus weight have no scale token */
  --ws-row-height: 36px; /* design-token-exempt: admin RecordsTable row height has no scale token */
  --ws-card-header-height: 42px; /* design-token-exempt: admin Card header minimum has no scale token */
  --ws-button-inset: 9px; /* design-token-exempt: preserve fly.css workspace-button horizontal padding */
}

/* PATTERNS §20 / §16 — admin Chip: select tints, outline and relation. */
.attio-root .ws-chip,
.ws-embedded .ws-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--nimble-space-1);
  max-width: 100%;
  padding: calc(var(--nimble-space-1) / 2) var(--nimble-space-1-5);
  border-radius: var(--nimble-radius-sm);
  background: var(--attio-grayBg);
  color: var(--attio-grayText);
  font-size: var(--nimble-font-size-label);
  font-weight: var(--nimble-font-weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.attio-root .ws-chip--yellow,
.ws-embedded .ws-chip--yellow,
.attio-root .ws-chip[data-status="brand_review"],
.ws-embedded .ws-chip[data-status="brand_review"],
.attio-root .ws-chip[data-status="changes_in_progress"],
.ws-embedded .ws-chip[data-status="changes_in_progress"] {
  background: var(--attio-yellowBg);
  color: var(--attio-yellowText);
}
.attio-root .ws-chip--pink,
.ws-embedded .ws-chip--pink,
.attio-root .ws-chip[data-status="awaiting_review"],
.ws-embedded .ws-chip[data-status="awaiting_review"] {
  background: var(--attio-pinkBg);
  color: var(--attio-pinkText);
}
.attio-root .ws-chip--cyan,
.ws-embedded .ws-chip--cyan,
.attio-root .ws-chip[data-status="planned"],
.ws-embedded .ws-chip[data-status="planned"],
.attio-root .ws-chip[data-status="draft"],
.ws-embedded .ws-chip[data-status="draft"] {
  background: var(--attio-cyanBg);
  color: var(--attio-cyanText);
}
.attio-root .ws-chip--green,
.ws-embedded .ws-chip--green,
.attio-root .ws-chip[data-status="live"],
.ws-embedded .ws-chip[data-status="live"],
.attio-root .ws-chip[data-status="sent"],
.ws-embedded .ws-chip[data-status="sent"] {
  background: var(--attio-greenBg);
  color: var(--attio-greenText);
}
.attio-root .ws-chip--blue,
.ws-embedded .ws-chip--blue,
.attio-root .ws-chip[data-status="approved"],
.ws-embedded .ws-chip[data-status="approved"],
.attio-root .ws-chip[data-status="reviewed"],
.ws-embedded .ws-chip[data-status="reviewed"] {
  background: var(--attio-blueBg);
  color: var(--attio-blueText);
}
.attio-root .ws-chip--purple,
.ws-embedded .ws-chip--purple,
.attio-root .ws-chip[data-status="mixed"],
.ws-embedded .ws-chip[data-status="mixed"],
.attio-root .ws-chip[data-status="unknown"],
.ws-embedded .ws-chip[data-status="unknown"],
.attio-root .ws-chip[data-status="scheduled"],
.ws-embedded .ws-chip[data-status="scheduled"] {
  background: var(--attio-purpleBg);
  color: var(--attio-purpleText);
}
.attio-root .ws-chip--gray,
.ws-embedded .ws-chip--gray {
  background: var(--attio-grayBg);
  color: var(--attio-grayText);
}
.attio-root .ws-chip--orange,
.ws-embedded .ws-chip--orange,
.attio-root .ws-chip[data-status="paused"],
.ws-embedded .ws-chip[data-status="paused"],
.attio-root .ws-chip[data-status="built"],
.attio-root .ws-chip[data-status="off"],
.attio-root .ws-chip[data-status="not_sent"],
.ws-embedded .ws-chip[data-status="built"],
.ws-embedded .ws-chip[data-status="off"],
.ws-embedded .ws-chip[data-status="not_sent"] {
  background: var(--attio-orangeBg);
  color: var(--attio-orangeText);
}
.attio-root .ws-chip--outline,
.ws-embedded .ws-chip--outline,
.attio-root .ws-chip--relation,
.ws-embedded .ws-chip--relation {
  border: 1px solid var(--attio-border);
  background: var(--attio-bg);
  color: var(--attio-secondary);
}
.attio-root .ws-chip--relation,
.ws-embedded .ws-chip--relation {
  border-radius: var(--nimble-radius-pill);
}

/* PATTERNS §20 / §15 — admin Card, including its optional flush body. */
.attio-root .ws-card,
.ws-embedded .ws-card {
  overflow: hidden;
  border: 1px solid var(--attio-border);
  border-radius: var(--nimble-radius-lg);
  background: var(--attio-bg);
  box-shadow: var(--attio-shadow-card);
}
.attio-root .ws-card__header,
.ws-embedded .ws-card__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--nimble-space-2);
  min-height: var(--ws-card-header-height);
  padding: var(--nimble-space-2-5) var(--nimble-space-3-5);
  border-bottom: 1px solid var(--attio-border);
}
.attio-root .ws-card__title,
.ws-embedded .ws-card__title {
  margin: 0;
  font-size: var(--nimble-font-size-label);
  font-weight: var(--nimble-font-weight-semibold);
}
.attio-root .ws-card__aside,
.ws-embedded .ws-card__aside {
  margin-left: auto;
  color: var(--attio-muted);
  font-size: var(--nimble-font-size-meta);
}
.attio-root .ws-card__body,
.ws-embedded .ws-card__body {
  padding: var(--nimble-space-2) var(--nimble-space-3-5) var(--nimble-space-2-5);
}
.attio-root .ws-card__body--flush,
.ws-embedded .ws-card__body--flush {
  padding: 0;
}
.attio-root .ws-card--selected,
.ws-embedded .ws-card--selected,
.attio-root .ws-card[data-selected="true"],
.ws-embedded .ws-card[data-selected="true"] {
  border-color: var(--attio-accent);
  background: var(--attio-active);
}

/* PATTERNS §4 / §20 — compact disclosure records in a flush card. */
.attio-root .ws-disclosure-list { display: grid; }
.attio-root .ws-disclosure-list__item {
  min-width: 0;
  padding: var(--nimble-space-4);
  border-bottom: 1px solid var(--attio-border);
}
.attio-root .ws-disclosure-list__item:last-child { border-bottom: 0; }
.attio-root .ws-disclosure-list__item summary { cursor: pointer; }
.attio-root .ws-disclosure-list__item summary p { margin-block: var(--nimble-space-2); }
.attio-root .ws-disclosure-summary { display: flex; align-items: center; gap: var(--nimble-space-4); overflow-wrap: anywhere; }
.attio-root .ws-disclosure-thumbnail { width: 3rem; height: 3rem; object-fit: contain; flex: none; }
.attio-root .ws-disclosure-thumbnail--wide { width: 7.5rem; max-width: 35%; height: 4.7rem; object-fit: cover; object-position: top; }


/* PATTERNS §20 / §14 / §18a — admin RecordsTable; column widths belong to pages.
   At the compact breakpoint the first cell spans the row; pages can hide optional
   columns in their own geometry rules. Use tabindex="0" and Enter/Space handlers
   for clickable rows, and a semantic caption with the caption class. */
.attio-root .ws-records {
  max-width: 100%;
  max-height: 75vh;
  overflow: auto;
  position: relative;
  background: var(--attio-bg);
}
.attio-root .ws-records-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: var(--attio-body);
}
.attio-root .ws-records-table th,
.attio-root .ws-records-table td {
  height: var(--ws-row-height);
  padding: 0 var(--nimble-space-2);
  border-right: 1px solid var(--attio-border);
  border-bottom: 1px solid var(--attio-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  vertical-align: middle;
}
.attio-root .ws-records-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--attio-bg);
  color: var(--attio-secondary);
  font-size: var(--nimble-font-size-label);
  font-weight: var(--nimble-font-weight-medium);
}
.attio-root .ws-records-table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--attio-bg);
}
.attio-root .ws-records-table thead tr > :first-child {
  z-index: 3;
}
.attio-root .ws-records-table button {
  max-width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.attio-root .ws-records-table thead button {
  width: 100%;
  height: var(--ws-row-height);
  padding: 0;
}
.attio-root .ws-records-table__row {
  cursor: pointer;
}
.attio-root .ws-records-table__row:hover td {
  background: var(--attio-hover);
}
.attio-root .ws-records-table__row:focus-visible,
.attio-root .ws-records-table button:focus-visible {
  outline: var(--nimble-focus-ring-width) solid var(--attio-accent);
  outline-offset: calc(-1 * var(--nimble-focus-ring-offset));
}
.attio-root .ws-records-table td svg {
  width: var(--nimble-space-4);
  height: var(--nimble-space-4);
  vertical-align: middle;
  margin-right: var(--nimble-space-1-5);
}
.attio-root .ws-records-table .ws-records-table__group th {
  background: var(--attio-surface);
  color: var(--attio-muted);
  font-weight: var(--nimble-font-weight-medium);
}
.attio-root .ws-records-table__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.attio-root .ws-records-table .ws-records-table__numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 24.375rem) { /* Calendar's ≤390 CSS-pixel compact geometry. */
  .attio-root .ws-records { width: 100%; overflow-x: hidden; }
  .attio-root .ws-records-table { display: block; min-width: 0; }
  .attio-root .ws-records-table thead,
  .attio-root .ws-records-table tbody { display: block; width: 100%; }
  .attio-root .ws-records-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
    box-sizing: border-box;
  }
  .attio-root .ws-records-table th,
  .attio-root .ws-records-table td {
    min-width: 0;
    height: var(--nimble-space-7);
    box-sizing: border-box;
    border-right: 0;
    padding: calc(var(--nimble-space-1) / 2) var(--nimble-space-1);
    font-size: var(--nimble-font-size-caption);
  }
  .attio-root .ws-records-table tr > :first-child { position: static; grid-column: 1 / -1; }
  .attio-root .ws-records-table thead { position: sticky; top: 0; z-index: 3; background: var(--attio-bg); }
  .attio-root .ws-records-table thead th { position: static; }
  .attio-root .ws-records-table thead button { height: auto; font-size: var(--nimble-font-size-meta); }
  .attio-root .ws-records-table .ws-records-table__group { display: block; }
  .attio-root .ws-records-table__group th { display: block; width: 100%; height: var(--ws-row-height); }
}

/* PATTERNS §20 / §15 — admin EmptyState. */
.attio-root .ws-empty {
  display: grid;
  justify-items: center;
  gap: var(--nimble-space-2);
  padding: var(--nimble-space-7) var(--nimble-space-4);
  color: var(--attio-muted);
  text-align: center;
}
.attio-root .ws-empty__icon {
  color: var(--attio-subtle);
}
.attio-root .ws-empty__title {
  margin: 0;
  color: var(--attio-text);
  font-weight: var(--nimble-font-weight-medium);
}
.attio-root .ws-empty__description {
  margin: 0;
  font-size: var(--nimble-font-size-label);
}
.attio-root .ws-empty__action {
  margin-top: var(--nimble-space-2);
}

/* PATTERNS §20 — admin native button controls (ViewBar/Tabs).
   .workspace-button in fly.css is the legacy alias to delete when that file is
   next edited (NIM-3914). These base/hover/disabled declarations match it exactly. */
.attio-root .ws-button,
.attio-root .workspace-button {
  display: inline-flex;
  min-height: var(--nimble-space-8);
  align-items: center;
  justify-content: center;
  padding: 0 var(--ws-button-inset);
  border: 1px solid var(--attio-border);
  border-radius: var(--nimble-radius-md);
  background: var(--attio-bg);
  color: var(--attio-secondary);
  cursor: pointer;
  font-size: var(--nimble-font-size-label);
  font-weight: var(--nimble-font-weight-medium);
}
.attio-root .ws-button:hover,
.attio-root .workspace-button:hover {
  background: var(--attio-hover);
}
.attio-root .ws-button[aria-pressed="true"] {
  background: var(--attio-active);
  color: var(--attio-text);
}
.attio-root .ws-button:disabled,
.attio-root .workspace-button:disabled {
  cursor: default;
  opacity: .55;
}
.attio-root .ws-button--secondary {
  background: var(--attio-bg);
  color: var(--attio-secondary);
}
.attio-root .ws-button--primary {
  background: var(--attio-text);
  color: var(--attio-bg);
}
.attio-root .ws-button--primary:hover {
  background: var(--attio-secondary);
}
.attio-root .ws-button--quiet {
  background: transparent;
  border: 0;
}
.attio-root .ws-button:focus-visible,
.attio-root .workspace-button:focus-visible {
  outline: var(--nimble-focus-ring-width) solid var(--attio-accent);
  outline-offset: var(--nimble-focus-ring-offset);
}

/* PATTERNS §20 — admin native form controls; label wrapper + hint/error. */
.attio-root .ws-field {
  display: grid;
  gap: var(--nimble-space-1-5);
}
.attio-root .ws-field__label {
  color: var(--attio-secondary);
  font-size: var(--nimble-font-size-label);
  font-weight: var(--nimble-font-weight-medium);
}
.attio-root .ws-field__hint {
  color: var(--attio-muted);
  font-size: var(--nimble-font-size-meta);
}
.attio-root .ws-field__error {
  color: var(--attio-pinkText);
  font-size: var(--nimble-font-size-meta);
}
.attio-root .ws-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: var(--nimble-space-2) var(--nimble-space-3);
  border: 1px solid var(--attio-strong);
  border-radius: var(--nimble-radius-md);
  background: var(--attio-bg);
  color: var(--attio-text);
  font: inherit;
}
.attio-root .ws-input:focus-visible {
  outline: var(--nimble-focus-ring-width) solid var(--attio-accent);
  outline-offset: var(--nimble-focus-ring-offset);
}
.attio-root .ws-input[aria-invalid="true"] {
  border-color: var(--attio-degraded);
}

.attio-root .workspace-setup-link { color: var(--attio-secondary); font-size: var(--nimble-font-size-label); }

/* PATTERNS §20 — section navigation: all destinations visible on desktop,
   scrollable on narrow screens; callers keep their own icons and content. */
.attio-root .ws-tabs {
  display: flex;
  gap: var(--nimble-space-1);
  overflow-x: auto;
  padding: 0 var(--nimble-space-2);
  border-bottom: 1px solid var(--attio-border);
  background: var(--attio-bg);
  scrollbar-width: thin;
}
.attio-root .ws-tabs__item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--nimble-space-1);
  padding: var(--nimble-space-3) var(--nimble-space-1-5);
  border-bottom: var(--ws-tab-indicator) solid transparent;
  color: var(--attio-secondary);
  font-size: var(--nimble-font-size-label);
  line-height: var(--nimble-line-height-normal);
  text-decoration: none;
  white-space: nowrap;
}
.attio-root .ws-tabs__item:hover { color: var(--attio-text); }
.attio-root .ws-tabs__item[aria-current="true"],
.attio-root .ws-tabs__item[aria-current="page"] {
  color: var(--attio-text);
  border-bottom-color: var(--attio-text);
  font-weight: var(--nimble-font-weight-medium);
}
.attio-root .ws-tabs__item:focus-visible {
  outline: var(--ws-tab-indicator) solid var(--attio-text);
  outline-offset: calc(-1 * var(--ws-tab-indicator));
}
@media (min-width: 48rem) {
  .attio-root .ws-tabs { flex-wrap: wrap; overflow-x: visible; }
}

/* NIM-4562: Projects list — one compact summary card per project. */
.attio-root .hosted-projects__list { display: grid; gap: var(--nimble-space-3); }
.attio-root .hosted-projects__name { margin: 0 0 var(--nimble-space-2); }
.attio-root .hosted-projects__name-link { color: inherit; text-decoration: none; }
.attio-root .hosted-projects__name-link:hover,
.attio-root .hosted-projects__name-link:focus-visible { text-decoration: underline; }
.attio-root .hosted-projects__counts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nimble-space-2);
  margin: var(--nimble-space-2) 0;
  padding: 0;
  list-style: none;
}

/* Shared components in the embedded Metrics fragment retain its native theme.
   Only palette aliases live here; component declarations above remain shared. */
.ws-embedded:where(:not(.attio-root *)) {
  --attio-bg: var(--nimble-color-surface-raised);
  --attio-border: var(--nimble-color-border-subtle);
  --attio-muted: var(--nimble-color-text-tertiary);
  --attio-grayBg: var(--nimble-color-surface-sunken);
  --attio-grayText: var(--nimble-color-text-secondary);
  --attio-pinkBg: var(--nimble-color-danger-surface);
  --attio-pinkText: var(--nimble-color-danger-text);
  --attio-yellowBg: var(--nimble-color-warning-surface);
  --attio-yellowText: var(--nimble-color-warning-text);
  --attio-cyanBg: var(--nimble-color-info-surface);
  --attio-cyanText: var(--nimble-color-info-text);
  --attio-greenBg: var(--nimble-color-success-surface);
  --attio-greenText: var(--nimble-color-success-text);
  --attio-blueBg: var(--nimble-color-info-surface);
  --attio-blueText: var(--nimble-color-info-text);
  --attio-purpleBg: var(--nimble-color-escalation-surface);
  --attio-purpleText: var(--nimble-color-escalation-text);
  --attio-orangeBg: var(--nimble-color-warning-surface);
  --attio-orangeText: var(--nimble-color-warning-text);
  --attio-shadow-card: none;
  --ws-card-header-height: var(--nimble-space-10);
}

/* PATTERNS §20 — opt-in creative content compositions. The shell and controls
   retain their Attio palette and type; these roles never override global tokens. */
.attio-root .ws-creative {
  --ws-creative-canvas: var(--attio-surface);
  --ws-creative-ink: var(--attio-text);
  --ws-creative-accent: var(--attio-accent);
  --ws-creative-display: var(--attio-font);
  --ws-creative-body-size: var(--nimble-font-size-body);
  --ws-creative-title-size: var(--nimble-font-size-title);
  --ws-creative-title-leading: var(--nimble-line-height-tight);
  --ws-creative-card-size: var(--nimble-font-size-lg);
  --ws-creative-card-leading: var(--nimble-line-height-normal);
  box-sizing: border-box;
  min-width: 0;
  padding: var(--nimble-space-6);
  background: var(--ws-creative-canvas);
  color: var(--ws-creative-ink);
  font-size: var(--ws-creative-body-size);
  line-height: 1.5;
}
.attio-root .ws-creative-title {
  margin: 0 0 var(--nimble-space-3);
  font-family: var(--ws-creative-display);
  font-size: var(--ws-creative-title-size);
  line-height: var(--ws-creative-title-leading);
  font-weight: 600;
}
.attio-root .ws-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nimble-space-3);
}
.attio-root .ws-media-card,
.attio-root .ws-identity,
.attio-root .ws-setup-row,
.attio-root .ws-context-row,
.attio-root .ws-brief,
.attio-root .ws-detail {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--attio-border);
  border-radius: var(--nimble-radius-lg);
  background: var(--attio-bg);
}
.attio-root .ws-media-card { overflow: hidden; }
.attio-root .ws-media-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--attio-grayBg);
  color: var(--attio-grayText);
  text-align: center;
}
.attio-root .ws-media-frame > img,
.attio-root .ws-media-frame > video { width: 100%; height: 100%; object-fit: contain; }
/* NIM-5267: a play marker over a video deliverable's still. */
.attio-root .ws-video-marked { position: relative; }
.attio-root .ws-video-marker { position: absolute; left: var(--nimble-space-1); bottom: var(--nimble-space-1); display: inline-flex; align-items: center; gap: var(--nimble-space-1); padding: calc(var(--nimble-space-1) / 2) var(--nimble-space-1-5); border-radius: var(--nimble-radius-sm); background: var(--attio-grayBg); color: var(--attio-grayText); font-size: var(--nimble-font-size-label); font-weight: var(--nimble-font-weight-medium); pointer-events: none; }
.attio-root .ws-video-marker::before { content: "\25B6"; }
.attio-root .ws-media-frame--compact { aspect-ratio: auto; min-height: var(--nimble-space-10); padding: var(--nimble-space-3); }
.attio-root .ws-media-frame--portrait { aspect-ratio: 4 / 5; }
.attio-root .ws-media-frame--vertical { aspect-ratio: 9 / 16; }
.attio-root .ws-media-frame--cover > img { object-fit: cover; }
.attio-root .ws-media-body,
.attio-root .ws-identity,
.attio-root .ws-setup-row,
.attio-root .ws-context-row,
.attio-root .ws-brief,
.attio-root .ws-detail { padding: var(--nimble-space-4); }
.attio-root .ws-media-body h3 { margin: var(--nimble-space-2) 0; font-size: var(--ws-creative-card-size); line-height: var(--ws-creative-card-leading); }
.attio-root .ws-setup-list { display: grid; gap: var(--nimble-space-3); padding: 0; list-style: none; }
.attio-root .ws-setup-row,
.attio-root .ws-context-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--nimble-space-3); justify-content: space-between; }
.attio-root .ws-setup-row > *,
.attio-root .ws-context-row > * { min-width: 0; }
.attio-root .ws-brief-steps { color: var(--attio-secondary); font-size: var(--nimble-font-size-label); }
.attio-root .ws-brief-summary { padding: var(--nimble-space-3); background: var(--attio-surface); }
@media (max-width: 60rem) { .attio-root .ws-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) {
  .attio-root .ws-creative { padding: var(--nimble-space-4); }
  .attio-root .ws-media-grid { grid-template-columns: minmax(0, 1fr); }
}

/* PATTERNS §20 — image-led discovery with native dialog detail. */
.attio-root { --ws-detail-max-width: 56.25rem; }
.attio-root .ws-gallery-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:var(--nimble-space-3); }
.attio-root .ws-gallery { columns:5; column-gap:var(--nimble-space-3); margin-block:var(--nimble-space-2); }
.attio-root .ws-gallery-item { position:relative; display:inline-block; width:100%; break-inside:avoid; margin-bottom:var(--nimble-space-4); }
.attio-root .ws-gallery-item button { position:relative; display:block; width:100%; padding:0; border:0; border-radius:var(--nimble-radius-lg); overflow:hidden; background:var(--attio-grayBg); cursor:pointer; }
.attio-root .ws-gallery-item img { display:block; width:100%; height:auto; }
.attio-root .ws-gallery-item strong,.attio-root .ws-gallery-item > span { position:absolute; left:0; right:0; color:var(--nimble-color-text-inverse); padding-inline:var(--nimble-space-3); opacity:0; pointer-events:none; }
.attio-root .ws-gallery-item strong { bottom:var(--nimble-space-8); }
.attio-root .ws-gallery-item > span { bottom:0; padding-bottom:var(--nimble-space-3); font-size:var(--nimble-font-size-meta); }
.attio-root .ws-gallery-item:hover strong,.attio-root .ws-gallery-item:hover > span,.attio-root .ws-gallery-item:focus-within strong,.attio-root .ws-gallery-item:focus-within > span { opacity:1; text-shadow:0 1px var(--nimble-space-1) var(--attio-text); }
.attio-root .ws-gallery-item small { position:absolute; top:var(--nimble-space-2); left:var(--nimble-space-2); padding:var(--nimble-space-1) var(--nimble-space-2); border-radius:var(--nimble-radius-md); background:var(--attio-bg); color:var(--attio-text); font-size:var(--nimble-font-size-caption); }
.attio-root .ws-example-detail { width:min(var(--ws-detail-max-width),calc(100% - var(--nimble-space-8))); max-height:90vh; border:thin solid var(--attio-border); border-radius:var(--nimble-radius-lg); padding:var(--nimble-space-4); }
.attio-root .ws-example-detail::backdrop { background:color-mix(in srgb, var(--attio-text) 55%, transparent); }
.attio-root .ws-example-detail [data-example-close] { display:block; margin-left:auto; }
.attio-root .ws-gallery-detail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--nimble-space-5); }
.attio-root .ws-gallery-detail img { display:block; max-width:100%; max-height:70vh; object-fit:contain; margin:auto; }
@media(max-width:60rem) { .attio-root .ws-gallery { columns:3; } }
@media(max-width:34rem) { .attio-root .ws-gallery { columns:2; } .attio-root .ws-gallery-detail { grid-template-columns:minmax(0,1fr); } }

.attio-root .ws-setup-steps { color:var(--attio-muted); font-size:var(--nimble-font-size-label); }
.attio-root .ws-setup-panel { display:grid; grid-template-columns:1fr 1fr; overflow:hidden; }
.attio-root .ws-setup-examples { padding:var(--nimble-space-6); background:var(--attio-surface); }
.attio-root .ws-setup-examples img { width:45%; height:18rem; object-fit:contain; }
.attio-root .ws-setup-examples p { color:var(--attio-muted); font-size:var(--nimble-font-size-meta); }
@media(max-width:34rem) { .attio-root .ws-setup-panel { grid-template-columns:1fr; } .attio-root .ws-setup-examples img { height:10rem; } }

.attio-root .ws-gallery-filters { display:flex; flex-wrap:wrap; gap:var(--nimble-space-2); }
.attio-root .ws-gallery-item[hidden] { display:none; }

.attio-root .ws-gallery-item button:has(.ws-image-error:not([hidden])) { display:grid; place-items:center; }
.attio-root .ws-gallery-item .ws-example-1x1:has(.ws-image-error:not([hidden])) { aspect-ratio:1; }
.attio-root .ws-gallery-item .ws-example-4x5:has(.ws-image-error:not([hidden])) { aspect-ratio:4/5; }
.attio-root .ws-gallery-item .ws-example-9x16:has(.ws-image-error:not([hidden])) { aspect-ratio:9/16; }
.attio-root .ws-gallery-item .ws-image-error { color:var(--attio-muted); padding:var(--nimble-space-3); }
.attio-root .ws-gallery-item .ws-image-error[hidden] { display:none; }
.attio-root .ws-gallery-detail [data-example-error] { min-height:12rem; display:grid; place-items:center; background:var(--attio-surface); }
.attio-root .ws-gallery-detail [data-example-error][hidden] { display:none; }
.attio-root .ws-gallery-item img[hidden], .attio-root .ws-gallery-detail img[hidden] { display:none; }


/* Quick shop presentation. Data, actions and state belong to the consumer. */
.attio-root .ws-shop-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--nimble-space-2); }
.attio-root .ws-shop-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:var(--nimble-space-5); align-items:start; }
.attio-root .ws-shop-stage { position:relative; overflow:hidden; border-radius:var(--nimble-radius-lg); background:var(--attio-grayBg); }
.attio-root .ws-shop-stage__media { display:block; width:100%; aspect-ratio:4/5; object-fit:cover; }
.attio-root .ws-shop-stage__product { position:absolute; top:var(--nimble-space-3); right:var(--nimble-space-3); width:clamp(4rem, 22%, 7rem); aspect-ratio:1; object-fit:contain; background:var(--attio-bg); border:var(--nimble-space-1) solid var(--attio-bg); border-radius:var(--nimble-radius-md); box-shadow:0 0 0 1px var(--attio-text), var(--attio-shadow-pop); }
.attio-root .ws-shop-choice { display:inline-flex; align-items:center; gap:var(--nimble-space-2); padding:var(--nimble-space-2) var(--nimble-space-3); border:1px solid var(--attio-border); border-radius:var(--nimble-radius-md); background:var(--attio-bg); color:var(--attio-secondary); cursor:pointer; }
.attio-root .ws-shop-choice[aria-pressed="true"], .attio-root .ws-shop-choice:has(input:checked) { border-color:var(--attio-purpleText); background:var(--attio-active); color:var(--attio-text); }
.attio-root .ws-shop-line { display:flex; align-items:center; gap:var(--nimble-space-3); padding:var(--nimble-space-3) 0; border-bottom:1px solid var(--attio-border); }
.attio-root .ws-shop-line__media { flex:none; width:4rem; aspect-ratio:1; object-fit:cover; border-radius:var(--nimble-radius-md); background:var(--attio-grayBg); }
.attio-root .ws-shop-line__body { flex:1; min-width:0; }
.attio-root .ws-shop-summary { padding:var(--nimble-space-4); border:1px solid var(--attio-border); border-radius:var(--nimble-radius-lg); background:var(--attio-bg); }
.attio-root .ws-shop-video { display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:var(--nimble-radius-lg); background:var(--attio-grayBg); }
@media(max-width:34rem) { .attio-root .ws-shop-layout { grid-template-columns:minmax(0,1fr); } }

/* Shopping form states must win over field/media display declarations. */
.attio-root [id^="ad-shopping-"] [hidden] { display:none!important; }
.attio-root .ws-shop-stage { min-height:20rem; }
.attio-root .ws-shop-stage__media { object-fit:contain; max-height:32rem; }
.attio-root .ws-shop-stage__product { display:grid; place-items:center; padding:var(--nimble-space-2); box-sizing:border-box; border:var(--nimble-focus-ring-width) solid var(--attio-purpleText); box-shadow:0 0 0 var(--nimble-space-1) var(--attio-bg),var(--attio-shadow-pop); font-size:var(--nimble-font-size-caption); text-align:center; }
.attio-root .ws-shop-stage__product img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.attio-root .ws-shop-breadcrumbs { display:flex; gap:var(--nimble-space-2); color:var(--attio-muted); font-size:var(--nimble-font-size-caption); margin-block:var(--nimble-space-2); }
.attio-root .ws-shop-breadcrumbs a { color:inherit; }
.attio-root #shopping-ai-copy { padding:var(--nimble-space-3); background:var(--attio-purpleBg); color:var(--attio-purpleText); border-radius:var(--nimble-radius-md); margin:0; }
.attio-root #ad-shopping-form { gap:var(--nimble-space-3); padding:var(--nimble-space-3); }
.attio-root #ad-shopping-form .ws-shop-actions .ws-button--primary { flex:1; justify-content:center; background:var(--attio-purpleText); color:var(--attio-bg); }
@media(max-width:48rem) { .attio-root .ws-shop-layout { grid-template-columns:minmax(0,1fr); } .attio-root .ws-shop-stage__media { max-height:24rem; } }

.attio-root .ws-shop-empty { min-height:24rem; padding:var(--nimble-space-6); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--nimble-space-3); text-align:center; color:var(--attio-muted); box-sizing:border-box; }
.attio-root .ws-shop-empty strong { color:var(--attio-text); font-size:var(--nimble-font-size-heading); }
.attio-root .ws-shop-empty__symbol { font-size:var(--nimble-font-size-hero); color:var(--attio-purpleText); }
.attio-root .ws-shop-pagination { display:flex; justify-content:center; align-items:center; gap:var(--nimble-space-4); margin-block:var(--nimble-space-5); }

/* Ads shopping previews use square frames; contain preserves portrait creative. */
.attio-root #ad-shopping-explore .ws-shop-stage, .attio-root #ad-shopping-create .ws-shop-stage { aspect-ratio:1; min-height:0; }
.attio-root #ad-shopping-explore .ws-shop-stage__media, .attio-root #ad-shopping-create .ws-shop-stage__media { width:100%; height:100%; max-height:none; aspect-ratio:1; object-fit:contain; }
.attio-root #ad-shopping-explore .ws-gallery-item .ws-shop-stage__media { height:100%; }
.attio-root #ad-shopping-create .ws-shop-empty { min-height:0; height:100%; }

/* The shared shopping gallery is square in every consumer, including Creator. */
.attio-root .ws-shop-gallery .ws-shop-stage { aspect-ratio:1; min-height:0; }
.attio-root .ws-shop-gallery .ws-shop-stage__media { width:100%; height:100%; max-height:none; aspect-ratio:1; object-fit:contain; }
.attio-root .ws-shop-gallery [hidden] { display:none!important; }
.attio-root .ws-shop-gallery .ws-shop-choice[aria-pressed="true"] { box-shadow:inset 0 0 0 var(--nimble-focus-ring-width) var(--attio-purpleText); }
.attio-root .ws-shop-gallery .ws-gallery-item .ws-button { display:inline-flex; width:auto; padding:var(--nimble-space-2) var(--nimble-space-3); }
.attio-root .ws-shop-gallery .ws-gallery-item .ws-button--primary { background:var(--attio-purpleText); color:var(--attio-bg); }
.attio-root .ws-shop-gallery { columns:auto; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:start; gap:var(--nimble-space-4); }
@media(max-width:60rem) { .attio-root .ws-shop-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:34rem) { .attio-root .ws-shop-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Shared selected-template composition: stage plus compact consumer controls. */
.attio-root .ws-shop-editor { grid-template-columns:minmax(0,1.2fr) minmax(18rem,1fr); }
.attio-root .ws-shop-editor__stage { min-width:0; position:sticky; top:var(--nimble-space-4); }
.attio-root .ws-shop-editor__stage > .ws-shop-empty { aspect-ratio:1; min-height:0; }
.attio-root .ws-shop-editor__controls { min-width:0; }
.attio-root .ws-shop-options { display:flex; flex-wrap:wrap; gap:var(--nimble-space-2); }
.attio-root .ws-shop-editor__controls > .ws-shop-actions:first-child { margin-bottom:var(--nimble-space-3); }
@media(max-width:48rem) { .attio-root .ws-shop-editor { grid-template-columns:minmax(0,1fr); } .attio-root .ws-shop-editor__stage { position:static; } }

.attio-root .ws-shop-gallery.ws-shop-selected { grid-template-columns:minmax(0,1fr); gap:var(--nimble-space-2); }

/* PATTERNS §21 — Explore detail modal (NIM-4958). Native <dialog>, showModal(). */
.attio-root .ws-shop-explore { box-sizing:border-box; width:min(72rem, calc(100vw - var(--nimble-space-8))); max-width:none; max-height:calc(100dvh - var(--nimble-space-8)); padding:0; border:thin solid var(--attio-border); border-radius:var(--nimble-radius-lg); background:var(--attio-bg); color:var(--attio-text); overflow:auto; overscroll-behavior:contain; }
.attio-root .ws-shop-explore::backdrop { background:color-mix(in srgb, var(--attio-text) 80%, transparent); }
.attio-root .ws-shop-explore[hidden], .attio-root .ws-shop-explore [hidden] { display:none!important; }
.attio-root .ws-shop-explore__frame { box-sizing:border-box; display:grid; gap:var(--nimble-space-4); padding:var(--nimble-space-4) var(--nimble-space-5) var(--nimble-space-5); min-width:0; }
.attio-root .ws-shop-explore__bar { display:flex; align-items:center; justify-content:space-between; gap:var(--nimble-space-3); }
.attio-root .ws-shop-explore__position { margin:0; color:var(--attio-muted); font-size:var(--nimble-font-size-meta); }
.attio-root .ws-shop-explore__body { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(16rem,1fr); gap:var(--nimble-space-6); align-items:start; min-width:0; }
.attio-root .ws-shop-explore__stage { min-width:0; }
.attio-root .ws-shop-explore__stage .ws-shop-stage { aspect-ratio:1; min-height:0; }
.attio-root .ws-shop-explore__stage .ws-shop-stage__media { width:100%; height:100%; max-height:none; aspect-ratio:1; object-fit:contain; }
.attio-root .ws-shop-explore__stage .ws-shop-empty { min-height:0; height:100%; }
.attio-root .ws-shop-explore__details { display:grid; gap:var(--nimble-space-4); min-width:0; align-content:start; }
.attio-root .ws-shop-explore__title { margin:0; font-size:var(--nimble-font-size-heading); line-height:var(--nimble-line-height-tight); overflow-wrap:anywhere; }
.attio-root .ws-shop-explore__description { margin:0; color:var(--attio-secondary); }
.attio-root .ws-shop-explore__readiness { margin:0; padding:var(--nimble-space-3); border-radius:var(--nimble-radius-md); background:var(--attio-grayBg); color:var(--attio-secondary); font-size:var(--nimble-font-size-meta); }
.attio-root .ws-shop-explore__outputs h3 { margin:0 0 var(--nimble-space-2); font-size:var(--nimble-font-size-label); font-weight:var(--nimble-font-weight-medium); color:var(--attio-muted); }
.attio-root .ws-shop-explore__outputs ul { margin:0; padding-left:var(--nimble-space-5); display:grid; gap:var(--nimble-space-1); }
.attio-root .ws-shop-explore__create .ws-button { display:flex; width:100%; box-sizing:border-box; justify-content:center; text-decoration:none; }
.attio-root .ws-shop-explore__create .ws-button--primary:not(:disabled) { background:var(--attio-purpleText); color:var(--attio-bg); }
.attio-root .ws-shop-explore__nav { display:flex; justify-content:space-between; gap:var(--nimble-space-3); }
@media(max-width:48rem) {
  .attio-root .ws-shop-explore { width:calc(100vw - var(--nimble-space-4)); max-height:calc(100dvh - var(--nimble-space-4)); }
  .attio-root .ws-shop-explore__frame { padding:var(--nimble-space-3) var(--nimble-space-4) var(--nimble-space-4); }
  .attio-root .ws-shop-explore__body { grid-template-columns:minmax(0,1fr); gap:var(--nimble-space-4); }
}

/* Shared shopping workspace modifier: form-heavy source/review panels. */
.attio-root .ws-shop-workspace {min-width:0}.attio-root .ws-shop-panel {display:grid;gap:var(--nimble-space-4);max-width:72rem}.attio-root .ws-shop-panel[hidden] {display:none}.attio-root .ws-shop-workspace .ws-gallery-heading h2 {margin:0}.attio-root .ws-shop-workspace .ws-gallery-heading+p {margin:var(--nimble-space-2) 0;color:var(--attio-muted);font-size:var(--nimble-font-size-meta)}.attio-root .ws-shop-workspace .ws-gallery-item {padding:0;border:0;background:transparent}.attio-root .ws-shop-workspace .ws-gallery-item button {margin:0}.attio-root .ws-shop-workspace .ws-gallery-item p {margin:0}.attio-root .ws-shop-workspace .ws-tabs__item {margin:0;border-top:0;border-left:0;border-right:0;background:transparent;font-family:inherit;cursor:pointer}.attio-root .ws-shop-workspace p {overflow-wrap:anywhere}.attio-root .ws-shop-panel section h2 {margin:0 0 var(--nimble-space-3);font-size:var(--nimble-font-size-lg);line-height:var(--nimble-line-height-normal)}.attio-root .ws-shop-panel section p {margin:var(--nimble-space-2) 0}.attio-root .ws-shop-panel label:has(input[type=checkbox]) {display:flex;align-items:center;gap:var(--nimble-space-2)}.attio-root .ws-shop-panel label:has(input[type=checkbox]) input {order:-1;flex:none}.attio-root .ws-shop-panel section {min-width:0;padding:1.25rem;border:thin solid var(--nimble-color-border-default);border-radius:var(--nimble-radius-lg);background:var(--nimble-color-surface-raised)}.attio-root .ws-shop-workspace label {display:grid;gap:.35rem;margin:.6rem 0}.attio-root .ws-shop-workspace input, .attio-root .ws-shop-workspace select, .attio-root .ws-shop-workspace textarea {max-width:100%;padding:.5rem;border:thin solid var(--nimble-color-border-strong);border-radius:var(--nimble-radius-sm)}.attio-root .ws-shop-workspace button {margin:.3rem;padding:.55rem .8rem}.attio-root .ws-shop-workspace fieldset {margin:1rem 0;border:thin solid var(--nimble-color-border-default)}.attio-root .ws-shop-workspace video {max-width:100%;max-height:32rem}.attio-root .ws-shop-workspace .ws-shop-stage__media {object-fit:contain}.attio-root .ws-shop-workspace [hidden] {display:none}.attio-root .ws-shop-workspace [aria-label="Review draft format"] {position:sticky;top:0;z-index:2;background:var(--nimble-color-surface-raised);padding:.5rem 0}.attio-root .ws-shop-workspace .checks label {display:flex;align-items:start;gap:.5rem}.attio-root .ws-shop-video { object-fit:contain; }


/* PATTERNS §20 — section sub-navigation (NIM-4961). A labelled vertical list
   subordinate to ws-tabs: real links with aria-current, an optional one-line
   status per item, stacked above the content on narrow screens. */
.attio-root {
  --ws-subnav-width: 15rem; /* design-token-exempt: sub-nav column width has no scale token */
  --ws-subnav-item-height: 3.25rem; /* design-token-exempt: two-line sub-nav item minimum has no scale token */
}
.attio-root .ws-subnav-layout {
  display: grid;
  grid-template-columns: var(--ws-subnav-width) minmax(0, 1fr);
  gap: var(--nimble-space-8);
  align-items: start;
}
.attio-root .ws-subnav-content { display: grid; gap: var(--nimble-space-5); align-content: start; min-width: 0; }
.attio-root .ws-subnav { position: sticky; top: var(--nimble-space-4); min-width: 0; }
.attio-root .ws-subnav__heading {
  margin: 0;
  padding: 0 var(--nimble-space-3) var(--nimble-space-2);
  color: var(--attio-muted);
  font-size: var(--nimble-font-size-caption);
  font-weight: var(--nimble-font-weight-semibold);
  letter-spacing: 0.08em; /* design-token-exempt: uppercase eyebrow tracking has no scale token */
  text-transform: uppercase;
}
.attio-root .ws-subnav__list { display: grid; gap: calc(var(--nimble-space-1) / 2); margin: 0; padding: 0; list-style: none; }
.attio-root .ws-subnav__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(var(--nimble-space-1) / 2);
  min-height: var(--ws-subnav-item-height);
  box-sizing: border-box;
  padding: var(--nimble-space-2-5) var(--nimble-space-3);
  border-radius: var(--nimble-radius-lg);
  color: var(--attio-text);
  text-decoration: none;
}
.attio-root .ws-subnav__item:hover { background: var(--attio-hover); }
.attio-root .ws-subnav__item[aria-current="page"],
.attio-root .ws-subnav__item[aria-current="true"] { background: var(--attio-tint); color: var(--attio-blueText); }
.attio-root .ws-subnav__item:focus-visible { outline: var(--ws-tab-indicator) solid var(--attio-accent); outline-offset: 0; }
.attio-root .ws-subnav__label { font-size: var(--nimble-font-size-body); font-weight: var(--nimble-font-weight-medium); }
.attio-root .ws-subnav__item[aria-current] .ws-subnav__label { font-weight: var(--nimble-font-weight-semibold); }
.attio-root .ws-subnav__meta { color: var(--attio-muted); font-size: var(--nimble-font-size-meta); }
.attio-root .ws-subnav__meta:empty { display: none; }
.attio-root .ws-subnav__meta--attention { color: var(--attio-pinkText); }
@media (max-width: 48rem) {
  .attio-root .ws-subnav-layout { grid-template-columns: minmax(0, 1fr); gap: var(--nimble-space-4); }
  .attio-root .ws-subnav { position: static; }
  .attio-root .ws-subnav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* PATTERNS §20 — brand kit presentation (NIM-4961): logo tiles on dark and
   light stages, colour swatches with their value, and font specimens rendered
   in the font. Consumers supply the real kit; missing media is labelled. */
.attio-root {
  --ws-logo-stage-height: 11.25rem; /* design-token-exempt: logo stage height has no scale token */
  --ws-swatch-height: 5.25rem; /* design-token-exempt: swatch block height has no scale token */
}
.attio-root .ws-logo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--nimble-space-4); }
.attio-root .ws-logo-tile { min-width: 0; overflow: hidden; border: 1px solid var(--attio-border); border-radius: var(--nimble-radius-lg); background: var(--attio-bg); }
.attio-root .ws-logo-tile__stage {
  display: grid;
  place-items: center;
  height: var(--ws-logo-stage-height);
  box-sizing: border-box;
  padding: var(--nimble-space-6);
  overflow: hidden;
  font-size: var(--nimble-font-size-meta);
}
.attio-root .ws-logo-tile__stage--dark { background: var(--attio-text); color: var(--attio-bg); }
.attio-root .ws-logo-tile__stage--light { background: var(--attio-surface); color: var(--attio-muted); border-bottom: 1px solid var(--attio-border); }
.attio-root .ws-logo-tile__stage > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.attio-root .ws-logo-tile__body { display: flex; align-items: center; justify-content: space-between; gap: var(--nimble-space-3); padding: var(--nimble-space-3) var(--nimble-space-3-5); }
.attio-root .ws-logo-tile__name { display: block; font-weight: var(--nimble-font-weight-semibold); }
.attio-root .ws-logo-tile__meta { display: block; color: var(--attio-muted); font-size: var(--nimble-font-size-meta); }
.attio-root .ws-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: var(--nimble-space-3); }
.attio-root .ws-swatch { min-width: 0; }
.attio-root .ws-swatch__colour { display: block; height: var(--ws-swatch-height); border: 1px solid var(--attio-border); border-radius: var(--nimble-radius-md); }
.attio-root .ws-swatch__name { display: block; margin-top: var(--nimble-space-2); font-size: var(--nimble-font-size-label); font-weight: var(--nimble-font-weight-semibold); }
.attio-root .ws-swatch__value { display: block; color: var(--attio-muted); font-size: var(--nimble-font-size-meta); font-variant-numeric: tabular-nums; }
.attio-root .ws-font-specimens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--nimble-space-3); }
.attio-root .ws-font-specimen { min-width: 0; padding: var(--nimble-space-4); border: 1px solid var(--attio-border); border-radius: var(--nimble-radius-md); overflow-wrap: anywhere; }
.attio-root .ws-font-specimen__glyph { font-size: var(--nimble-font-size-hero); line-height: var(--nimble-line-height-tight); }
.attio-root .ws-font-specimen__sample { margin: var(--nimble-space-2) 0 0; font-size: var(--nimble-font-size-lg); line-height: var(--nimble-line-height-normal); }
.attio-root .ws-font-specimen__name { display: block; margin-top: var(--nimble-space-2); color: var(--attio-muted); font-family: var(--attio-font); font-size: var(--nimble-font-size-meta); }
/* A labelled stand-in for a disclosure thumbnail that has no real media. */
.attio-root .ws-disclosure-thumbnail--placeholder {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: var(--nimble-space-1);
  border-radius: var(--nimble-radius-md);
  background: var(--attio-grayBg);
  color: var(--attio-grayText);
  font-size: var(--nimble-font-size-caption);
  text-align: center;
}

/* Shared creative review compositions; media and choices extend the primitives above. */
.attio-root .ws-variant-strip { display:flex; flex-wrap:wrap; gap:var(--nimble-space-2); }
.attio-root .ws-variant-strip .ws-shop-choice { font-size:var(--nimble-font-size-label); max-width:100%; overflow-wrap:anywhere; flex-direction:column; min-width:0; }
.attio-root .ws-variant-strip .ws-disclosure-thumbnail { border-radius:var(--nimble-radius-sm); }
.attio-root .ws-format-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--nimble-space-2); align-items:start; }
.attio-root .ws-format-row figure { min-width:0; margin:0; }
.attio-root .ws-format-row figcaption { margin-top:var(--nimble-space-1); font-size:var(--nimble-font-size-meta); overflow-wrap:anywhere; }
.attio-root .ws-review-progress { min-width:0; font-size:var(--nimble-font-size-label); display:grid; gap:var(--nimble-space-1); }
.attio-root .ws-review-progress progress { width:100%; accent-color:var(--attio-purpleText); }
.attio-root .ws-needs-you { font-size:var(--nimble-font-size-label); overflow-wrap:anywhere; display:flex; flex-wrap:wrap; align-items:center; gap:var(--nimble-space-2); padding:var(--nimble-space-3); border-radius:var(--nimble-radius-md); background:var(--attio-pinkBg); color:var(--attio-pinkText); }
.attio-root .ws-disclosure-thumbnail--list-row { border-radius:var(--nimble-radius-sm); object-fit:cover; }
