:host(:not(:is([hydrated], .hydrated))) {
  @apply not-hydrated;
}


mds-banner,
mds-button,
mds-chip,
mds-dropdown,
mds-help,
mds-icon,
mds-text {
  &:not(:is([hydrated], .hydrated)) {
    @apply not-hydrated;
  }
}


:host {
  display: inline-flex;
}

:host(:not([variant='icon'])) {
  container-name: mds-policy-ai;
  container-type: inline-size;
  width: 100%;
}

mds-button {
  justify-self: start;
}

.banner {
  --mds-banner-cockade-background: rgb(var(--magma-accent-ai-fg, var(--variant-ai-03, 105 49 204)));
  --mds-banner-icon-color: rgb(var(--magma-accent-ai-surface-subtle, var(--variant-ai-10, 238 235 255)));
}

.mini-card {
  @apply grid-cols-full;

  background-color: rgb(var(--magma-surface-raised, var(--surface-neutral-raised, 248 248 248)));
  border-radius: var(--magma-radius-lg, var(--radius-squircle-lg, 28px));
  box-shadow: var(--shadow-sm-sharp, 0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 3px 0 rgb(0 0 0 / 0.1));
  corner-shape: var(--magma-corner-shape, squircle);
  display: inline-flex;
  gap: --spacing(300);
  padding: --spacing(400);
}

/* a tab hanging from the top edge: 24px on its 32px width was half a circle at the bottom, the
   pill, out of the corner axis; the square top corners lose nothing to the clamp */

.mini-card-icon {
  background-color: rgb(var(--magma-accent-ai-fg, var(--variant-ai-03, 105 49 204)));
  border-radius: var(--magma-radius-full, var(--radius-full, 1000px));
  border-top-left-radius: var(--magma-radius-none, var(--radius-none, 0px));
  border-top-right-radius: var(--magma-radius-none, var(--radius-none, 0px));
  fill: rgb(var(--magma-accent-ai-surface-subtle, var(--variant-ai-10, 238 235 255)));
  height: --spacing(600);
  margin-top: --spacing(-400);
  padding: --spacing(100);
  padding-top: --spacing(400);
  width: --spacing(600);
}

.link-label-short {
  display: none;
}

.mini-card-content {
  @apply grid-cols-full;

  display: grid;
  gap: --spacing(300);
}

.mini-card-button {
  max-width: min-content;
  min-width: 0;
  width: 100%;
}

@container mds-policy-ai (max-width: 260px) {
  .mini-card {
    display: grid;
  }

  .mini-card-icon {
    border-top-left-radius: var(--magma-radius-none, var(--radius-none, 0px));
    border-top-right-radius: var(--magma-radius-none, var(--radius-none, 0px));
    margin-top: --spacing(-400);
    padding-top: --spacing(200);
  }

  .mini-card-button {
    max-width: none;
  }

  .link-label-long {
    display: none;
  }

  .link-label-short {
    display: inline;
  }
}

.chip {
  cursor: help;
}

.chip-dropdown {
  max-width: --spacing(7200);
  padding: --spacing(300) --spacing(400);
}

/* 24px on a 34px button was a circle: the pill, out of the corner axis */

.icon-help {
  background-color: rgb(var(--magma-accent-ai-fg, var(--variant-ai-03, 105 49 204)));
  border: 1px solid rgb(var(--magma-surface-raised, var(--surface-neutral-raised, 248 248 248)));
  border-radius: var(--magma-radius-full, var(--radius-full, 1000px));
  cursor: pointer;
  fill: rgb(var(--magma-accent-ai-surface-subtle, var(--variant-ai-10, 238 235 255)));
  height: min-content;
  width: min-content;
}

.icon-tip-content {
  display: grid;
  gap: --spacing(200);
}

.icon-help::part(icon) {
  height: --spacing(600);
  padding: --spacing(100);
  width: --spacing(600);
}

