.lt-library { --lt-library-columns: 5; --lt-library-card-height: 100px; display: block; width: 100%; min-width: 0; color: inherit; font-family: inherit; font-size: 14px; line-height: 1.45; }
.lt-library--hueview { --lt-library-columns: 4; }
.lt-library *, .lt-library *::before, .lt-library *::after { box-sizing: border-box; }
.lt-library [hidden] { display: none !important; }
.lt-library button, .lt-library input { font: inherit; }
.lt-library button { cursor: pointer; }
.lt-library button:disabled { cursor: default; opacity: .5; }
.lt-library :is(button, a, input):focus-visible { outline: 2px solid #2271b1; outline-offset: 3px; }
.lt-library__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lt-library__search { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 24px; padding: 12px 0; border-bottom: 1px solid #ddd; }
.lt-library__search svg { flex: 0 0 20px; width: 20px; height: 20px; }
.lt-library .lt-library__search input { width: 100%; min-width: 0; border: 0; border-radius: 0; padding: 7px 4px; color: inherit; background: transparent; box-shadow: none; }
.lt-library__filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 32px; }
.lt-library__filters fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.lt-library__filters legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.lt-library__options { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-library__filter { position: relative; display: block; margin: 0; cursor: pointer; }
.lt-library__filter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lt-library__filter span { display: block; padding: 7px 12px; border: 1px solid #ddd; border-radius: 5px; color: #666; background: #fff; font-size: 13px; }
.lt-library__filter input:checked + span { background: #171717; color: #fff; border-color: #171717; }
.lt-library__filter input:focus-visible + span { outline: 2px solid #2271b1; outline-offset: 3px; }
.lt-library__filter input:disabled + span { opacity: .4; cursor: default; }
.lt-library__summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 20px; margin-bottom: 16px; color: #737373; font-size: 12px; }
.lt-library__summary button { padding: 0; border: 0; color: inherit; background: transparent; text-decoration: underline; }
.lt-library__grid { display: grid; grid-template-columns: repeat(var(--lt-library-columns), minmax(0, 1fr)); gap: 16px; align-items: start; }
.lt-library--hueview .lt-library__grid { gap: 30px; }
.lt-library__card { min-width: 0; position: relative; }
.lt-library .lt-library__color { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: var(--lt-library-card-height); padding: 16px 38px 16px 16px; border: 0; border-radius: 6px; text-align: center; box-shadow: inset 0 0 0 1px #00000008; }
.lt-library__hex { font-size: 14px; font-weight: 500; }
.lt-library__name { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.lt-library__swatches { display: flex; overflow: hidden; min-height: var(--lt-library-card-height); border-radius: 6px; box-shadow: 0 0 0 1px #00000012; }
.lt-library .lt-library__swatch { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-width: 0; padding: 0; border: 0; border-radius: 0; transition: flex-grow .2s; }
.lt-library__swatch span { opacity: 0; white-space: nowrap; pointer-events: none; font-size: 12px; transition: opacity .15s; }
.lt-library__swatch:is(:hover, :focus-visible) { flex-grow: 3; }
.lt-library__swatch:is(:hover, :focus-visible) span { opacity: 1; }
.lt-library__caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; }
.lt-library__caption a { color: inherit; text-decoration: none; }
.lt-library__caption a:hover { text-decoration: underline; }
.lt-library .lt-library__favorite { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; padding: 7px; border: 0; border-radius: 50%; color: #f44336; background: transparent; }
.lt-library--colory .lt-library__favorite { position: absolute; top: 5px; right: 5px; background: #fff; box-shadow: 0 1px 4px #0001; }
.lt-library .lt-library__favorite svg { display: block; width: 100%; height: 100%; color: #f44336; }
.lt-library .lt-library__favorite svg path { fill: none; stroke: currentColor; stroke-width: 36; }
.lt-library .lt-library__favorite[aria-pressed="true"] svg path { fill: currentColor; }
.lt-library__favorite:hover { box-shadow: 0 0 0 2px #f4433626; }
.lt-library__status:empty { display: none; }
.lt-library__status, .lt-library__login, .lt-library__empty { margin: 16px 0; font-size: 14px; }
.lt-library__status[data-error="true"] { color: #a32920; }
.lt-library__login a { color: inherit; text-decoration: underline; }
.lt-library .lt-library__more { display: block; margin: 28px auto 0; border: 1px solid #ddd; border-radius: 6px; padding: 10px 24px; color: #333; background: #fff; }
@media (max-width: 991px) { .lt-library__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lt-library--hueview .lt-library__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lt-library__filters { gap: 16px; } }
@media (max-width: 600px) { .lt-library__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .lt-library--hueview .lt-library__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .lt-library__filters { grid-template-columns: minmax(0, 1fr); gap: 20px; } .lt-library__filter span { padding: 8px 12px; } .lt-library .lt-library__favorite { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .lt-library__swatch, .lt-library__swatch span { transition: none; } }
