body {
  font-family: var(--leeuw-font-family);
  color: var(--leeuw-color-text-dark);
}

:is(
  .customer-request-card__status,
  .assist-overview__status,
  .assist-detail__status,
  .customer-history-position__status,
  .oc-user-row__status,
  .oc-customer-user-card__status,
  .badge
) {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--leeuw-color-status-neutral-border);
  border-radius: var(--leeuw-radius-pill);
  background: var(--leeuw-color-status-neutral-surface);
  color: var(--leeuw-color-status-neutral-text);
  font-size: var(--leeuw-font-size-xs);
  font-weight: var(--leeuw-font-weight-bold);
  line-height: 1.25;
  white-space: nowrap;
}

:is(
  .customer-request-card__status.is-open,
  .assist-overview__status.is-new,
  .assist-detail__status.is-new,
  .oc-user-row__status.is-pending,
  .oc-customer-user-card__status.is-pending
) {
  border-color: var(--leeuw-color-status-open-border);
  background: var(--leeuw-color-status-open-surface);
  color: var(--leeuw-color-status-open-text);
}

:is(
  .customer-request-card__status.is-processing,
  .assist-overview__status.is-ai,
  .assist-detail__status.is-ai
) {
  border-color: var(--leeuw-color-status-active-border);
  background: var(--leeuw-color-status-active-surface);
  color: var(--leeuw-color-status-active-text);
}

:is(
  .assist-overview__status.is-review,
  .assist-detail__status.is-review
) {
  border-color: var(--leeuw-color-status-info-border);
  background: var(--leeuw-color-status-info-surface);
  color: var(--leeuw-color-status-info-text);
}

:is(
  .customer-request-card__status.is-ordered,
  .customer-request-card__status.is-shipping
) {
  border-color: var(--leeuw-color-status-info-border);
  background: var(--leeuw-color-status-info-surface);
  color: var(--leeuw-color-status-info-text);
}

:is(
  .customer-request-card__status.is-complete,
  .assist-overview__status.is-complete,
  .assist-detail__status.is-complete,
  .oc-user-row__status.is-active,
  .oc-customer-user-card__status.is-active
) {
  border-color: var(--leeuw-color-status-success-border);
  background: var(--leeuw-color-status-success-surface);
  color: var(--leeuw-color-status-success-text);
}

:is(
  .customer-request-card__status.is-action,
  .assist-overview__status.is-action,
  .assist-detail__status.is-action,
  .oc-user-row__status.is-blocked,
  .oc-customer-user-card__status.is-blocked,
  .activation-card__status.is-error
) {
  border-color: var(--leeuw-color-status-error-border);
  background: var(--leeuw-color-status-error-surface);
  color: var(--leeuw-color-status-error-text);
}

:is(
  .customer-history-summary__group--complaint,
  .customer-history-summary__group--clarification,
  .customer-history-position__status--complaint,
  .customer-history-position__status--clarification
) {
  color: var(--leeuw-color-status-error-text);
}

:is(
  .customer-history-summary__group--reported,
  .customer-history-position__status--reported
) {
  color: var(--leeuw-color-status-open-text);
}

:is(
  .customer-history-summary__group--processing,
  .customer-history-position__status--processing
) {
  color: var(--leeuw-color-status-active-text);
}

:is(
  .customer-history-summary__group--ordered,
  .customer-history-summary__group--shipping,
  .customer-history-summary__group--partial_delivery,
  .customer-history-position__status--ordered,
  .customer-history-position__status--shipping,
  .customer-history-position__status--partial_delivery
) {
  color: var(--leeuw-color-status-info-text);
}

:is(
  .customer-history-summary__group--completed,
  .customer-history-summary__group--delivered,
  .customer-history-position__status--completed,
  .customer-history-position__status--delivered
) {
  color: var(--leeuw-color-status-success-text);
}

.customer-history-summary__group
.customer-history-summary__dot,
.customer-history-position__status
.customer-history-position__status-dot {
  background: currentColor;
}

:is(
  .customer-request-card,
  .assist-overview__card,
  .customer-history-position,
  .product-selection__card,
  .oc-panel
) {
  border-radius: var(--leeuw-radius-lg);
  border-color: rgba(7, 17, 22, 0.08);
  box-shadow: var(--leeuw-shadow-soft);
}

:is(
  .customer-request-list-screen,
  .customer-history-screen,
  .assist-overview,
  .leeuw-assist,
  .product-selection,
  .material-check,
  .operations-cockpit
) h1 {
  margin-block-start: 0;
  font-size: clamp(
    var(--leeuw-font-size-xl),
    5vw,
    var(--leeuw-font-size-display)
  );
  font-weight: var(--leeuw-font-weight-heavy);
  line-height: var(--leeuw-line-height-tight);
  text-wrap: balance;
}

:is(
  .customer-request-list-screen,
  .customer-history-screen,
  .assist-overview,
  .leeuw-assist,
  .product-selection,
  .material-check,
  .operations-cockpit
) :is(p, li) {
  line-height: var(--leeuw-line-height-normal);
}

@media (max-width: 430px) {
  :is(
    .customer-request-card__status,
    .assist-overview__status,
    .assist-detail__status,
    .customer-history-position__status,
    .oc-user-row__status,
    .oc-customer-user-card__status,
    .badge
  ) {
    max-width: 100%;
    white-space: normal;
  }
}
