/* Colores automáticos de etiquetas destacadas (ver tag-tones-v1.js). */
[data-tone] { --tone-fg: inherit; --tone-bg: transparent; --tone-line: currentColor; --tone-dark-fg: inherit; }
[data-tone="health"]  { --tone-fg: #0f6b66; --tone-bg: #e1f3f1; --tone-line: #8fcfc8; --tone-dark-fg: #8fe0d6; }
[data-tone="green"]   { --tone-fg: #27734a; --tone-bg: #e6f4ea; --tone-line: #8fc9a3; --tone-dark-fg: #a3e2b8; }
[data-tone="citrus"]  { --tone-fg: #4c6a08; --tone-bg: #eef8cc; --tone-line: #b6d450; --tone-dark-fg: #d4ef7a; }
[data-tone="wood"]    { --tone-fg: #6b4423; --tone-bg: #f3e9de; --tone-line: #c9a17c; --tone-dark-fg: #e3c3a0; }
[data-tone="fruit"]   { --tone-fg: #a3344a; --tone-bg: linear-gradient(100deg, #ffe1e8, #ffecd9); --tone-line: #f0a7a0; --tone-dark-fg: #ffb3bf; }
[data-tone="floral"]  { --tone-fg: #a2366d; --tone-bg: #fbe6f0; --tone-line: #e6a3c5; --tone-dark-fg: #f5b2d4; }
[data-tone="sweet"]   { --tone-fg: #875714; --tone-bg: #fbefd9; --tone-line: #e0b672; --tone-dark-fg: #f0cd8e; }
[data-tone="aqua"]    { --tone-fg: #1a6690; --tone-bg: #e2f1fa; --tone-line: #92c6e4; --tone-dark-fg: #9fd6f5; }
[data-tone="spicy"]   { --tone-fg: #a8321f; --tone-bg: #fbe5df; --tone-line: #eba08f; --tone-dark-fg: #ffad9b; }
[data-tone="amber"]   { --tone-fg: #845d00; --tone-bg: linear-gradient(100deg, #fdf3d3, #f8e6b8); --tone-line: #dcbc5c; --tone-dark-fg: #f2d27a; }
[data-tone="premium"] { --tone-fg: #5b3fa3; --tone-bg: #ece7fb; --tone-line: #b5a5e8; --tone-dark-fg: #c8b9ff; }
[data-tone="earth"]   { --tone-fg: #974626; --tone-bg: #f8e7de; --tone-line: #d9a088; --tone-dark-fg: #f0b49a; }

.catalog-annotation-chip[data-tone],
.product-editor-tag[data-tone],
.product-tag-tone[data-tone] {
  border-color: var(--tone-line);
  color: var(--tone-fg);
  background: var(--tone-bg);
}
.product-editor-tag[data-tone] button { color: inherit; opacity: .7; }

html[data-surface="dark"] .catalog-annotation-chip[data-tone],
html[data-theme="dark"] .product-editor-tag[data-tone],
html[data-theme="dark"] .product-tag-tone[data-tone] {
  border-color: color-mix(in srgb, var(--tone-dark-fg) 42%, transparent);
  color: var(--tone-dark-fg);
  background: color-mix(in srgb, var(--tone-dark-fg) 14%, transparent);
}
html[data-surface="dark"] .catalog-annotation-chip[data-tone="fruit"],
html[data-theme="dark"] .product-editor-tag[data-tone="fruit"],
html[data-theme="dark"] .product-tag-tone[data-tone="fruit"] {
  background: linear-gradient(100deg, rgba(255, 120, 150, .2), rgba(255, 170, 90, .16));
}
