/* Field appearance belongs to the SAME .form-field rules as the adjacent category select.
   Only multi-value layout lives here; menu/option appearance belongs to gc-select. */
html body .gc-style-color-picker {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  /* Native category select includes its 2px platform inset; keep tags within that height. */
  min-height: calc(1lh + 22px);
  padding-block: 4px !important;
  line-height: normal;
  cursor: pointer;
}
html body .gc-color-selected { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
html body .gc-color-placeholder { color: var(--ink-mute); }
html body .gc-color-tag { display: inline-flex; align-items: center; gap: 3px; min-width: 0; max-width: 100%; padding: 2px 3px 2px 7px; border-radius: var(--gc-ui-option-radius, 7px); background: var(--gc-wb-surface-muted, #f7f7f9); line-height: 1.4; }
html body .gc-color-tag > span { min-width: 0; overflow-wrap: anywhere; }
html body .gc-style-color-picker :is(.gc-color-remove, .gc-color-trigger) { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; background: transparent; color: var(--gc-wb-text-secondary, #424248); box-shadow: none; font: inherit; padding: 0; cursor: pointer; border-radius: var(--gc-ui-option-radius, 7px); }
html body .gc-style-color-picker .gc-color-remove { width: 24px; height: 24px; font-size: 16px; }
html body .gc-style-color-picker .gc-color-trigger { width: 16px; min-height: 28px; }
html body .gc-color-trigger svg { width: 16px; height: 16px; }
html body .gc-style-color-picker .gc-color-remove:hover { background: var(--gc-wb-surface-muted, #f7f7f9); }
/* The public compound-control rule owns the only focus ring. */
html body .gc-style-color-picker :is(.gc-color-remove, .gc-color-trigger):focus-visible { outline: none !important; box-shadow: none !important; }
html body .gc-style-color-menu { display: flex; flex-direction: column; overflow: hidden; }
html body .gc-color-search-row { flex-shrink: 0; padding: 5px; }
html body .gc-style-color-menu .gc-color-search-row input { box-sizing: border-box; display: block; width: 100%; min-width: 0; height: var(--gc-ui-field-height, 36px); padding: 0 10px; margin: 0; border: 1px solid var(--gc-wb-line-strong, #d1d1d6); border-radius: var(--gc-ui-select-radius, 9px); background: var(--gc-wb-surface, #fff); color: var(--gc-wb-text, #1d1d1f); font: 400 13px var(--font-sans); box-shadow: none; outline: none; }
html body .gc-style-color-menu .gc-color-search-row input:focus { border-color: var(--gc-wb-primary, #007aff); box-shadow: none; outline: none; }
html body .gc-color-options { min-height: 0; max-height: 280px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
/* This ARIA list is content INSIDE the shared menu, not a second popover surface. */
html body .gc-style-color-menu .gc-color-options { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html body .gc-color-option-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; min-width: 0; }
html body .gc-color-option-zh { color: var(--ink-mute); font-weight: 400; }
html body .gc-style-color-menu .gc-color-add { flex-shrink: 0; margin-top: 5px; }
@media (max-width: 720px) {
  html body .gc-style-color-picker { min-height: var(--gc-ui-touch-target-height, 44px); }
  html body .gc-style-color-picker .gc-color-trigger { min-width: 36px; min-height: 36px; }
  html body .gc-style-color-picker .gc-color-remove { width: 32px; height: 32px; }
  html body .gc-style-color-menu :is(.gc-color-search-row input, .gc-color-add) { min-height: var(--gc-ui-touch-target-height, 44px); }
}
@media print { .gc-style-color-menu { display: none !important; } }
