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


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


/**
 * @prop --mds-label-background: Public. The background color of the label component.
 * @prop --mds-label-color: Public. The text color of the label.
 * @prop --mds-label-icon-color: The color applied to any icon inside the label.
 * @prop --mds-label-selection-background: The background color applied when the label is selected.
 * @prop --mds-label-selection-color: The text color applied when the label is selected.
 * @prop --mds-label-button-background: The background color of a button inside the label.
 * @prop --mds-label-button-background-hover: The background color of the button when hovered.
 * @prop --mds-label-button-icon-color: The color of the icon inside the button.
 */

:host {
  --mds-label-background: rgb(var(--label-yellow-09, 254 219 157));
  --mds-label-color: rgb(var(--label-yellow-02, 86 67 20));
  --mds-label-icon-color: var(--mds-label-color, rgb(var(--label-blue-02, 9 41 189)));
  --mds-label-selection-background: var(--magma-selection-background, rgb(var(--label-sky-09, 196 229 250)));
  --mds-label-selection-color: var(--magma-selection-color, rgb(var(--label-sky-01, 1 48 72)));
  --mds-label-button-background: transparent;
  --mds-label-button-background-hover: rgb(var(--label-yellow-07, 237 184 41));
  --mds-label-button-icon-color: rgb(var(--label-yellow-03, 111 85 22));
  --private-bevel-size: --spacing(900);

  @apply ease-in-out;

  align-items: center;
  background-color: var(--mds-label-background, rgb(var(--label-blue-08, 191 212 255)));
  border-radius: var(--magma-radius-full, var(--radius-full, 1000px));
  color: var(--mds-label-color, rgb(var(--label-blue-02, 9 41 189)));
  corner-shape: var(--magma-corner-shape, squircle);
  display: flex;
  fill: var(--mds-label-icon-color, rgb(var(--label-blue-02, 9 41 189)));
  flex: 1;
  gap: --spacing(50);

  /* The label is as wide as its text and no wider than the space it is given. fit-content and
   * not min-content: a text that wraps (truncate none or all) has the narrowest box it can wrap
   * into as min-content, a single letter under the overflow-wrap: anywhere of the styles reset,
   * and it capped the width the label was given down to a column of letters (#1008). */
  max-width: fit-content;
  min-height: --spacing(700);
  padding: 0 --spacing(200);
  transition-duration: var(--duration-200, 200ms);
  transition-property: color, background-color, fill;
}

@supports (corner-shape: bevel) {
  :host {
    align-items: stretch;
    corner-left-shape: superellipse(0.25);
    corner-right-shape: var(--magma-corner-shape, squircle);
    padding-left: calc(var(--private-bevel-size) / 2);
    padding-right: 0;
  }
}

:host::selection {
  background-color: var(--mds-label-selection-background, rgb(var(--label-blue-06, 131 170 255)));
  color: var(--mds-label-selection-color, rgb(var(--label-blue-10, 228 238 255)));
}

:host([truncate='word']) {
  .text {
    white-space: nowrap;
  }
}

.text {
  --mds-text-selection-background: var(--mds-label-selection-background, rgb(var(--label-blue-06, 131 170 255)));
  --mds-text-selection-color: var(--mds-label-selection-color, rgb(var(--label-blue-10, 228 238 255)));

  align-self: center;
  display: block;
  flex-grow: 1;

  &:last-child {
    padding-right: --spacing(200);
  }
}

/* The close button paints no resting pad: it is as tall as the label, so its own
 * box can only cut across the corners of the tag, whatever radius it is given.
 * The tint comes back on hover, where it reads as feedback and not as a second
 * shape; --mds-label-button-background stays the knob to bring it back. */

.button-close {
  --mds-button-background: var(--mds-label-button-background, transparent);
  --mds-button-border-opacity: 0;

  align-self: center;
  fill: var(--mds-label-button-icon-color, rgb(var(--label-blue-04, 44 96 250)));
  flex-shrink: 0;
}

.button-close:hover {
  --mds-button-background: var(--mds-label-button-background-hover, rgb(var(--label-blue-08, 191 212 255)));
}

:host {
  --mds-label-background: rgb(var(--label-blue-08, 191 212 255));
  --mds-label-button-background-hover: rgb(var(--label-blue-09, 209 224 254));
  --mds-label-button-icon-color: rgb(var(--label-blue-04, 44 96 250));
  --mds-label-color: rgb(var(--label-blue-02, 9 41 189));
  --mds-label-icon-color: rgb(var(--label-blue-02, 9 41 189));
  --mds-label-selection-background: rgb(var(--label-blue-06, 131 170 255));
  --mds-label-selection-color: rgb(var(--label-blue-10, 228 238 255));
}

:host([variant='red']) {
  --mds-label-background: rgb(var(--label-red-04, 212 28 28));
  --mds-label-button-background-hover: rgb(var(--label-red-05, 230 66 66));
  --mds-label-button-icon-color: rgb(var(--label-red-10, 252 233 233));
  --mds-label-color: rgb(var(--label-red-10, 252 233 233));
  --mds-label-icon-color: rgb(var(--label-red-10, 252 233 233));
  --mds-label-selection-background: rgb(var(--label-red-08, 248 201 201));
  --mds-label-selection-color: rgb(var(--label-red-02, 131 17 17));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-red-08, 248 201 201));
    --mds-label-button-background-hover: rgb(var(--label-red-09, 250 215 215));
    --mds-label-button-icon-color: rgb(var(--label-red-04, 212 28 28));
    --mds-label-color: rgb(var(--label-red-02, 131 17 17));
    --mds-label-icon-color: rgb(var(--label-red-02, 131 17 17));
    --mds-label-selection-background: rgb(var(--label-red-06, 241 144 144));
    --mds-label-selection-color: rgb(var(--label-red-10, 252 233 233));
  }
}

:host([variant='amaranth']) {
  --mds-label-background: rgb(var(--label-amaranth-04, 202 51 77));
  --mds-label-button-background-hover: rgb(var(--label-amaranth-05, 232 60 89));
  --mds-label-button-icon-color: rgb(var(--label-amaranth-10, 255 232 233));
  --mds-label-color: rgb(var(--label-amaranth-10, 255 232 233));
  --mds-label-icon-color: rgb(var(--label-amaranth-10, 255 232 233));
  --mds-label-selection-background: rgb(var(--label-amaranth-08, 255 197 200));
  --mds-label-selection-color: rgb(var(--label-amaranth-02, 126 28 45));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-amaranth-08, 255 197 200));
    --mds-label-button-background-hover: rgb(var(--label-amaranth-09, 255 214 215));
    --mds-label-button-icon-color: rgb(var(--label-amaranth-04, 202 51 77));
    --mds-label-color: rgb(var(--label-amaranth-02, 126 28 45));
    --mds-label-icon-color: rgb(var(--label-amaranth-02, 126 28 45));
    --mds-label-selection-background: rgb(var(--label-amaranth-06, 255 135 144));
    --mds-label-selection-color: rgb(var(--label-amaranth-10, 255 232 233));
  }
}

:host([variant='aqua']) {
  --mds-label-background: rgb(var(--label-aqua-04, 4 122 143));
  --mds-label-button-background-hover: rgb(var(--label-aqua-05, 5 141 165));
  --mds-label-button-icon-color: rgb(var(--label-aqua-10, 199 245 253));
  --mds-label-color: rgb(var(--label-aqua-10, 199 245 253));
  --mds-label-icon-color: rgb(var(--label-aqua-10, 199 245 253));
  --mds-label-selection-background: rgb(var(--label-aqua-08, 99 229 251));
  --mds-label-selection-color: rgb(var(--label-aqua-02, 2 75 88));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-aqua-08, 99 229 251));
    --mds-label-button-background-hover: rgb(var(--label-aqua-09, 151 237 252));
    --mds-label-button-icon-color: rgb(var(--label-aqua-04, 4 122 143));
    --mds-label-color: rgb(var(--label-aqua-02, 2 75 88));
    --mds-label-icon-color: rgb(var(--label-aqua-02, 2 75 88));
    --mds-label-selection-background: rgb(var(--label-aqua-06, 6 186 217));
    --mds-label-selection-color: rgb(var(--label-aqua-10, 199 245 253));
  }
}

:host([variant='blue']) {
  --mds-label-background: rgb(var(--label-blue-04, 44 96 250));
  --mds-label-button-background-hover: rgb(var(--label-blue-05, 69 120 254));
  --mds-label-button-icon-color: rgb(var(--label-blue-10, 228 238 255));
  --mds-label-color: rgb(var(--label-blue-10, 228 238 255));
  --mds-label-icon-color: rgb(var(--label-blue-10, 228 238 255));
  --mds-label-selection-background: rgb(var(--label-blue-08, 191 212 255));
  --mds-label-selection-color: rgb(var(--label-blue-02, 9 41 189));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-blue-08, 191 212 255));
    --mds-label-button-background-hover: rgb(var(--label-blue-09, 209 224 254));
    --mds-label-button-icon-color: rgb(var(--label-blue-04, 44 96 250));
    --mds-label-color: rgb(var(--label-blue-02, 9 41 189));
    --mds-label-icon-color: rgb(var(--label-blue-02, 9 41 189));
    --mds-label-selection-background: rgb(var(--label-blue-06, 131 170 255));
    --mds-label-selection-color: rgb(var(--label-blue-10, 228 238 255));
  }
}

:host([variant='green']) {
  --mds-label-background: rgb(var(--label-green-04, 21 128 61));
  --mds-label-button-background-hover: rgb(var(--label-green-05, 26 148 71));
  --mds-label-button-icon-color: rgb(var(--label-green-10, 201 248 218));
  --mds-label-color: rgb(var(--label-green-10, 201 248 218));
  --mds-label-icon-color: rgb(var(--label-green-10, 201 248 218));
  --mds-label-selection-background: rgb(var(--label-green-08, 119 233 161));
  --mds-label-selection-color: rgb(var(--label-green-02, 12 79 37));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-green-08, 119 233 161));
    --mds-label-button-background-hover: rgb(var(--label-green-09, 154 242 188));
    --mds-label-button-icon-color: rgb(var(--label-green-04, 21 128 61));
    --mds-label-color: rgb(var(--label-green-02, 12 79 37));
    --mds-label-icon-color: rgb(var(--label-green-02, 12 79 37));
    --mds-label-selection-background: rgb(var(--label-green-06, 34 195 93));
    --mds-label-selection-color: rgb(var(--label-green-10, 201 248 218));
  }
}

:host([variant='lime']) {
  --mds-label-background: rgb(var(--label-lime-04, 81 124 12));
  --mds-label-button-background-hover: rgb(var(--label-lime-05, 93 143 15));
  --mds-label-button-icon-color: rgb(var(--label-lime-10, 214 249 159));
  --mds-label-color: rgb(var(--label-lime-10, 214 249 159));
  --mds-label-icon-color: rgb(var(--label-lime-10, 214 249 159));
  --mds-label-selection-background: rgb(var(--label-lime-08, 158 232 41));
  --mds-label-selection-color: rgb(var(--label-lime-02, 49 76 6));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-lime-08, 158 232 41));
    --mds-label-button-background-hover: rgb(var(--label-lime-09, 186 240 97));
    --mds-label-button-icon-color: rgb(var(--label-lime-04, 81 124 12));
    --mds-label-color: rgb(var(--label-lime-02, 49 76 6));
    --mds-label-icon-color: rgb(var(--label-lime-02, 49 76 6));
    --mds-label-selection-background: rgb(var(--label-lime-06, 123 189 20));
    --mds-label-selection-color: rgb(var(--label-lime-10, 214 249 159));
  }
}

:host([variant='orange']) {
  --mds-label-background: rgb(var(--label-orange-04, 181 82 13));
  --mds-label-button-background-hover: rgb(var(--label-orange-05, 208 95 16));
  --mds-label-button-icon-color: rgb(var(--label-orange-10, 255 233 222));
  --mds-label-color: rgb(var(--label-orange-10, 255 233 222));
  --mds-label-icon-color: rgb(var(--label-orange-10, 255 233 222));
  --mds-label-selection-background: rgb(var(--label-orange-08, 255 199 170));
  --mds-label-selection-color: rgb(var(--label-orange-02, 114 49 5));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-orange-08, 255 199 170));
    --mds-label-button-background-hover: rgb(var(--label-orange-09, 255 215 194));
    --mds-label-button-icon-color: rgb(var(--label-orange-04, 181 82 13));
    --mds-label-color: rgb(var(--label-orange-02, 114 49 5));
    --mds-label-icon-color: rgb(var(--label-orange-02, 114 49 5));
    --mds-label-selection-background: rgb(var(--label-orange-06, 253 141 81));
    --mds-label-selection-color: rgb(var(--label-orange-10, 255 233 222));
  }
}

:host([variant='orchid']) {
  --mds-label-background: rgb(var(--label-orchid-04, 202 34 125));
  --mds-label-button-background-hover: rgb(var(--label-orchid-05, 225 60 143));
  --mds-label-button-icon-color: rgb(var(--label-orchid-10, 255 231 240));
  --mds-label-color: rgb(var(--label-orchid-10, 255 231 240));
  --mds-label-icon-color: rgb(var(--label-orchid-10, 255 231 240));
  --mds-label-selection-background: rgb(var(--label-orchid-08, 255 196 218));
  --mds-label-selection-color: rgb(var(--label-orchid-02, 129 0 66));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-orchid-08, 255 196 218));
    --mds-label-button-background-hover: rgb(var(--label-orchid-09, 255 212 229));
    --mds-label-button-icon-color: rgb(var(--label-orchid-04, 202 34 125));
    --mds-label-color: rgb(var(--label-orchid-02, 129 0 66));
    --mds-label-icon-color: rgb(var(--label-orchid-02, 129 0 66));
    --mds-label-selection-background: rgb(var(--label-orchid-06, 248 134 183));
    --mds-label-selection-color: rgb(var(--label-orchid-10, 255 231 240));
  }
}

:host([variant='sky']) {
  --mds-label-background: rgb(var(--label-sky-04, 7 118 169));
  --mds-label-button-background-hover: rgb(var(--label-sky-05, 10 137 194));
  --mds-label-button-icon-color: rgb(var(--label-sky-10, 222 240 252));
  --mds-label-color: rgb(var(--label-sky-10, 222 240 252));
  --mds-label-icon-color: rgb(var(--label-sky-10, 222 240 252));
  --mds-label-selection-background: rgb(var(--label-sky-08, 172 217 248));
  --mds-label-selection-color: rgb(var(--label-sky-02, 3 73 106));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-sky-08, 172 217 248));
    --mds-label-button-background-hover: rgb(var(--label-sky-09, 196 229 250));
    --mds-label-button-icon-color: rgb(var(--label-sky-04, 7 118 169));
    --mds-label-color: rgb(var(--label-sky-02, 3 73 106));
    --mds-label-icon-color: rgb(var(--label-sky-02, 3 73 106));
    --mds-label-selection-background: rgb(var(--label-sky-06, 82 180 238));
    --mds-label-selection-color: rgb(var(--label-sky-10, 222 240 252));
  }
}

:host([variant='violet']) {
  --mds-label-background: rgb(var(--label-violet-04, 128 78 232));
  --mds-label-button-background-hover: rgb(var(--label-violet-05, 143 101 247));
  --mds-label-button-icon-color: rgb(var(--label-violet-10, 238 235 255));
  --mds-label-color: rgb(var(--label-violet-10, 238 235 255));
  --mds-label-icon-color: rgb(var(--label-violet-10, 238 235 255));
  --mds-label-selection-background: rgb(var(--label-violet-08, 214 205 255));
  --mds-label-selection-color: rgb(var(--label-violet-02, 84 7 175));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-violet-08, 214 205 255));
    --mds-label-button-background-hover: rgb(var(--label-violet-09, 225 219 255));
    --mds-label-button-icon-color: rgb(var(--label-violet-04, 128 78 232));
    --mds-label-color: rgb(var(--label-violet-02, 84 7 175));
    --mds-label-icon-color: rgb(var(--label-violet-02, 84 7 175));
    --mds-label-selection-background: rgb(var(--label-violet-06, 178 157 254));
    --mds-label-selection-color: rgb(var(--label-violet-10, 238 235 255));
  }
}

:host([variant='purple']) {
  --mds-label-background: rgb(var(--label-purple-04, 150 64 227));
  --mds-label-button-background-hover: rgb(var(--label-purple-05, 168 86 247));
  --mds-label-button-icon-color: rgb(var(--label-purple-10, 243 233 255));
  --mds-label-color: rgb(var(--label-purple-10, 243 233 255));
  --mds-label-icon-color: rgb(var(--label-purple-10, 243 233 255));
  --mds-label-selection-background: rgb(var(--label-purple-08, 225 202 255));
  --mds-label-selection-color: rgb(var(--label-purple-02, 95 0 162));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-purple-08, 225 202 255));
    --mds-label-button-background-hover: rgb(var(--label-purple-09, 233 217 255));
    --mds-label-button-icon-color: rgb(var(--label-purple-04, 150 64 227));
    --mds-label-color: rgb(var(--label-purple-02, 95 0 162));
    --mds-label-icon-color: rgb(var(--label-purple-02, 95 0 162));
    --mds-label-selection-background: rgb(var(--label-purple-06, 197 150 254));
    --mds-label-selection-color: rgb(var(--label-purple-10, 243 233 255));
  }
}

:host([variant='yellow']) {
  --mds-label-background: rgb(var(--label-yellow-04, 140 107 22));
  --mds-label-button-background-hover: rgb(var(--label-yellow-05, 161 124 22));
  --mds-label-button-icon-color: rgb(var(--label-yellow-10, 255 235 200));
  --mds-label-color: rgb(var(--label-yellow-10, 255 235 200));
  --mds-label-icon-color: rgb(var(--label-yellow-10, 255 235 200));
  --mds-label-selection-background: rgb(var(--label-yellow-08, 249 205 117));
  --mds-label-selection-color: rgb(var(--label-yellow-02, 86 67 20));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--label-yellow-08, 249 205 117));
    --mds-label-button-background-hover: rgb(var(--label-yellow-09, 254 219 157));
    --mds-label-button-icon-color: rgb(var(--label-yellow-04, 140 107 22));
    --mds-label-color: rgb(var(--label-yellow-02, 86 67 20));
    --mds-label-icon-color: rgb(var(--label-yellow-02, 86 67 20));
    --mds-label-selection-background: rgb(var(--label-yellow-06, 214 163 15));
    --mds-label-selection-color: rgb(var(--label-yellow-10, 255 235 200));
  }
}

:host([variant='error']) {
  --mds-label-background: rgb(var(--magma-danger-emphasis, var(--status-error-04, 196 64 65)));
  --mds-label-button-background-hover: rgb(var(--magma-danger-emphasis-hover, var(--status-error-03, 165 33 40)));
  --mds-label-button-icon-color: rgb(var(--magma-danger-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-color: rgb(var(--magma-danger-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-icon-color: rgb(var(--magma-danger-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-selection-background: rgb(var(--magma-danger-wash-strong, var(--status-error-08, 254 198 194)));
  --mds-label-selection-color: rgb(var(--magma-danger-text-muted, var(--text-error-muted, 132 0 11)));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--magma-danger-wash-strong, var(--status-error-08, 254 198 194)));
    --mds-label-button-background-hover: rgb(var(--magma-danger-wash-base, var(--status-error-09, 255 214 211)));
    --mds-label-button-icon-color: rgb(var(--magma-danger-text-default, var(--text-error-default, 89 0 0)));
    --mds-label-color: rgb(var(--magma-danger-text-muted, var(--text-error-muted, 132 0 11)));
    --mds-label-icon-color: rgb(var(--magma-danger-text-muted, var(--text-error-muted, 132 0 11)));
    --mds-label-selection-background: rgb(var(--magma-danger-border-strong, var(--border-error-strong, 218 96 93)));
    --mds-label-selection-color: rgb(var(--magma-danger-text-default, var(--text-error-default, 89 0 0)));
  }
}

:host([variant='warning']) {
  --mds-label-background: rgb(var(--magma-warning-emphasis, var(--status-warning-04, 142 106 0)));
  --mds-label-button-background-hover: rgb(var(--magma-warning-emphasis-hover, var(--status-warning-03, 113 85 0)));
  --mds-label-button-icon-color: rgb(var(--magma-warning-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-color: rgb(var(--magma-warning-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-icon-color: rgb(var(--magma-warning-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-selection-background: rgb(var(--magma-warning-wash-strong, var(--status-warning-08, 255 205 57)));
  --mds-label-selection-color: rgb(var(--magma-warning-text-muted, var(--text-warning-muted, 88 66 0)));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--magma-warning-wash-strong, var(--status-warning-08, 255 205 57)));
    --mds-label-button-background-hover: rgb(var(--magma-warning-wash-base, var(--status-warning-09, 255 220 117)));
    --mds-label-button-icon-color: rgb(var(--magma-warning-text-default, var(--text-warning-default, 58 44 0)));
    --mds-label-color: rgb(var(--magma-warning-text-muted, var(--text-warning-muted, 88 66 0)));
    --mds-label-icon-color: rgb(var(--magma-warning-text-muted, var(--text-warning-muted, 88 66 0)));
    --mds-label-selection-background: rgb(var(--magma-warning-border-strong, var(--border-warning-strong, 184 130 0)));
    --mds-label-selection-color: rgb(var(--magma-warning-text-default, var(--text-warning-default, 58 44 0)));
  }
}

:host([variant='success']) {
  --mds-label-background: rgb(var(--magma-success-emphasis, var(--status-success-04, 0 128 57)));
  --mds-label-button-background-hover: rgb(var(--magma-success-emphasis-hover, var(--status-success-03, 0 102 32)));
  --mds-label-button-icon-color: rgb(var(--magma-success-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-color: rgb(var(--magma-success-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-icon-color: rgb(var(--magma-success-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-selection-background: rgb(var(--magma-success-wash-strong, var(--status-success-08, 165 225 186)));
  --mds-label-selection-color: rgb(var(--magma-success-text-muted, var(--text-success-muted, 0 80 7)));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--magma-success-wash-strong, var(--status-success-08, 165 225 186)));
    --mds-label-button-background-hover: rgb(var(--magma-success-wash-base, var(--status-success-09, 191 233 205)));
    --mds-label-button-icon-color: rgb(var(--magma-success-text-default, var(--text-success-default, 0 53 0)));
    --mds-label-color: rgb(var(--magma-success-text-muted, var(--text-success-muted, 0 80 7)));
    --mds-label-icon-color: rgb(var(--magma-success-text-muted, var(--text-success-muted, 0 80 7)));
    --mds-label-selection-background: rgb(var(--magma-success-border-strong, var(--border-success-strong, 17 166 98)));
    --mds-label-selection-color: rgb(var(--magma-success-text-default, var(--text-success-default, 0 53 0)));
  }
}

:host([variant='info']) {
  --mds-label-background: rgb(var(--magma-info-emphasis, var(--status-info-04, 0 119 164)));
  --mds-label-button-background-hover: rgb(var(--magma-info-emphasis-hover, var(--status-info-03, 0 94 137)));
  --mds-label-button-icon-color: rgb(var(--magma-info-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-color: rgb(var(--magma-info-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-icon-color: rgb(var(--magma-info-on-emphasis, var(--tone-neutral-seed, 255 255 255)));
  --mds-label-selection-background: rgb(var(--magma-info-wash-strong, var(--status-info-08, 168 219 242)));
  --mds-label-selection-color: rgb(var(--magma-info-text-muted, var(--text-info-muted, 0 71 114)));

  &:host([tone='weak']) {
    --mds-label-background: rgb(var(--magma-info-wash-strong, var(--status-info-08, 168 219 242)));
    --mds-label-button-background-hover: rgb(var(--magma-info-wash-base, var(--status-info-09, 193 230 246)));
    --mds-label-button-icon-color: rgb(var(--magma-info-text-default, var(--text-info-default, 0 45 86)));
    --mds-label-color: rgb(var(--magma-info-text-muted, var(--text-info-muted, 0 71 114)));
    --mds-label-icon-color: rgb(var(--magma-info-text-muted, var(--text-info-muted, 0 71 114)));
    --mds-label-selection-background: rgb(var(--magma-info-border-strong, var(--border-info-strong, 18 154 196)));
    --mds-label-selection-color: rgb(var(--magma-info-text-default, var(--text-info-default, 0 45 86)));
  }
}

/* Theme preference. The component reflects the resolved theme mode and scheme
 * from <html> onto its host as pref-mode + pref-theme-scheme (see
 * subscribePreference in @common/preference); these plain shadow selectors refine
 * for dark. `dark` is the explicit choice; `system` and no controller follow the
 * OS via @media; the scheme axis gates it. Cross-browser, no :host-context. */

:host([pref-mode='dark']:not([pref-theme-scheme='light'])),
:host([pref-theme-scheme='dark']) {
  box-shadow: var(--shadow-ring, 0 0 0 1px rgb(var(--tone-neutral-01, 5 5 5) / 0.3)) inset;
}

@media (prefers-color-scheme: dark) {
  :host([pref-mode='system']:not([pref-theme-scheme='light'])),
  :host(:not([pref-mode]):not([pref-theme-scheme='light'])) {
    box-shadow: var(--shadow-ring, 0 0 0 1px rgb(var(--tone-neutral-01, 5 5 5) / 0.3)) inset;
  }
}

/* Contrast preference. The component reflects the resolved mode from <html> onto
 * its host as pref-contrast (see subscribePreference in @common/preference); these
 * plain shadow selectors refine for high contrast. `more` is the explicit choice;
 * `system` and no controller follow the OS via @media. Cross-browser, no :host-context. */

:host([pref-contrast='more']) {
  box-shadow: var(--shadow-ring-2, 0 0 0 2px rgb(var(--tone-neutral-01, 5 5 5) / 0.3)) inset;
}

@media (prefers-contrast: more) {
  :host([pref-contrast='system']),
  :host(:not([pref-contrast])) {
    box-shadow: var(--shadow-ring-2, 0 0 0 2px rgb(var(--tone-neutral-01, 5 5 5) / 0.3)) inset;
  }
}

