.shade-library {
  --sl-ink: #38343a;
  --sl-muted: #635a62;
  --sl-line: #dcd6d9;
  --sl-rose: #752342;
  --sl-paper: #f5eff1;
  min-width: 0;
  padding: 0 0 20px;
  margin: 0 0 19px;
  border-bottom: 1px solid var(--sl-line);
  color: var(--sl-ink);
  font-size: 14px;
  line-height: 1.45;
}
.shade-library *, .shade-library *::after, .shade-library *::before { box-sizing: border-box; }
.shade-library [hidden] { display: none !important; }
.shade-library h2 { margin: 0 0 13px; font: 500 22px/1.3 "Songti SC", "STSong", serif; }
.shade-library h2 { scroll-margin-top: 14px; }
.shade-library button, .shade-library input, .shade-library select { font: inherit; color: inherit; }
.shade-library button { border: 0; background: transparent; cursor: pointer; }
.shade-library :is(button, select, input, summary, a):focus-visible { outline: 2px solid var(--sl-rose); outline-offset: 3px; }
.shade-library .sl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #8c8087;
  border-radius: 4px;
  background: #fff;
}
.shade-library .sl-search:focus-within { outline: 2px solid var(--sl-rose); outline-offset: 1px; }
.shade-library .sl-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--sl-ink);
  background: transparent;
  font-size: 14px;
}
.shade-library .sl-search input::placeholder { color: #6f666d; opacity: 1; }
.shade-library .sl-lens {
  position: relative;
  width: 13px;
  height: 13px;
  flex: none;
  margin: 0 3px 2px 0;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}
.shade-library .sl-lens::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 6px;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
}
.shade-library .sl-filters { display: grid; grid-template-columns: 1.1fr 1fr; gap: 15px; margin-top: 7px; }
.shade-library .sl-filters label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  border-bottom: 1px solid var(--sl-line);
}
.shade-library .sl-filters label > span { flex: none; color: var(--sl-muted); font-size: 12px; }
.shade-library .sl-filters select {
  min-width: 0;
  flex: 1;
  height: 39px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  font-size: 13px;
  font-weight: 600;
}
.shade-library .sl-list-head { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 8px; font-size: 12px; color: var(--sl-muted); }
.shade-library .sl-list-head button { min-height: 32px; padding: 3px 0 3px 8px; text-decoration: underline; text-underline-offset: 3px; }
.shade-library .sl-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
.shade-library .sl-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 44px;
  padding: 4px 4px 7px;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.shade-library .sl-chip:hover { background: #f0ebed; }
.shade-library .sl-chip[aria-pressed="true"] { background: #efe7eb; }
.shade-library .sl-color {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 24px;
  padding: 3px 5px;
  margin-bottom: 5px;
  border-radius: 3px 11px 3px 3px;
  background: var(--sl-swatch);
  box-shadow: inset 0 0 0 1px rgb(56 52 58 / 10%);
}
.shade-library .sl-color > span { display: none; }
.shade-library .sl-chip[aria-pressed="true"] .sl-color > span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  background: white;
  color: #352d32;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.shade-library .sl-chip strong { font-size: 13px; font-weight: 650; }
.shade-library .sl-chip small, .shade-library .sl-brand { color: var(--sl-muted); font-size: 11px; }
.shade-library .sl-brand { margin-top: auto; padding-top: 2px; }
.shade-library .sl-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 3px 0; }
.shade-library .sl-pages button { min-height: 38px; padding: 4px 6px; font-size: 12px; }
.shade-library .sl-pages button:disabled { color: #726d70; opacity: .55; cursor: default; }
.shade-library .sl-pages span { color: var(--sl-muted); font: 12px/1.5 ui-monospace, monospace; }
.shade-library .sl-empty { grid-column: 1 / -1; margin: 0; padding: 10px 0 14px; color: var(--sl-muted); line-height: 1.6; }
.shade-library .sl-detail { margin-top: 12px; padding: 12px 14px 8px; background: var(--sl-paper); border-radius: 5px; }
.shade-library .sl-detail-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.shade-library .sl-detail-top strong { font-size: 15px; }
.shade-library .sl-detail-top span { font-size: 12px; color: var(--sl-rose); }
.shade-library .sl-chosen { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; margin: 8px 0 0; overflow-wrap: anywhere; }
.shade-library .sl-chosen span { font-size: 12px; }
.shade-library .sl-chosen i, .shade-library .sl-collection li > i {
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
  background: var(--sl-swatch);
  box-shadow: inset 0 0 0 1px rgb(56 52 58 / 12%);
}
.shade-library .sl-product, .shade-library .sl-finish { margin: 4px 0; color: var(--sl-muted); font-size: 12px; overflow-wrap: anywhere; }
.shade-library .sl-tip, .shade-library .sl-method p { margin: 5px 0; font-size: 13px; line-height: 1.65; }
.shade-library .sl-method summary, .shade-library .sl-collection summary { cursor: pointer; padding: 8px 0; }
.shade-library .sl-method summary { font-size: 13px; }
.shade-library .sl-method p strong { margin-right: 4px; }
.shade-library .sl-source { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.shade-library .sl-source a { color: var(--sl-rose); text-underline-offset: 3px; }
.shade-library .sl-source small { color: var(--sl-muted); font-size: 11px; }
.shade-library .sl-detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.shade-library .sl-detail-actions > * { display: inline-flex; align-items: center; gap: 3px; min-height: 34px; padding: 2px 0; }
.shade-library .sl-detail-actions button { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }
.shade-library .sl-collection { margin-top: 8px; }
.shade-library .sl-collection summary { font-size: 13px; font-weight: 600; }
.shade-library .sl-collection summary span { margin-left: 4px; font-weight: normal; color: var(--sl-muted); }
.shade-library .sl-collection ul { list-style: none; margin: 0; padding: 0; }
.shade-library .sl-collection li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.shade-library .sl-collection li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.shade-library .sl-collection li strong, .shade-library .sl-collection li small { display: block; }
.shade-library .sl-collection li strong { font-size: 13px; font-weight: 600; }
.shade-library .sl-collection li small { color: var(--sl-muted); font-size: 11px; }
.shade-library .sl-collection li button { flex: none; min-height: 38px; padding: 4px; font-size: 12px; }
.shade-library .sl-footnote { margin-top: 10px; color: var(--sl-muted); font-size: 12px; line-height: 1.55; }
@media (max-width: 760px) {
  .makeup-controls:has(.makeup-mini:not([hidden])) .shade-library h2 { scroll-margin-top: 130px; }
  .shade-library .sl-search input, .shade-library .sl-filters select { font-size: 16px; }
  .shade-library .sl-filters { gap: 9px; }
  .shade-library .sl-pages button, .shade-library .sl-filters select,
  .shade-library .sl-detail-actions > *, .shade-library .sl-collection li button { min-height: 44px; }
}
