@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root { font-family: 'DM Sans', sans-serif; color: var(--ink); background: var(--page); font-synthesis: none; color-scheme: light; --ink: #242530; --page: #f7f8fa; --surface: #fff; --surface-alt: #f3f4f7; --accent: #6050d7; --muted: #6d7080; --subtle: #7a7e8d; --border: #e5e6ec; --chip: #f0edff; --chip-ink: #5b48ce; --chip-border: #e9e4ff; --code: #f6f5fb; --code-ink: #65529e; --button: #6050d7; --button-hover: #5241c4; }
:root[data-theme=dark] { color-scheme: dark; --ink: #eef0f7; --page: #141820; --surface: #1c212c; --surface-alt: #252c39; --accent: #b4a5ff; --muted: #b0b7c8; --subtle: #a0a9bc; --border: #343d4d; --chip: #302b49; --chip-ink: #d1c5ff; --chip-border: #50446e; --code: #26253a; --code-ink: #c5b8f3; --button: #6955d5; --button-hover: #5844c0; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; }
button, a, input, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
[hidden] { display: none !important; }
.topbar { height: 84px; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 800 24px 'Manrope', sans-serif; letter-spacing: -1px; }
.brand-logo { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 12px; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.theme-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.theme-control select { padding: 8px 28px 8px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); background: var(--surface-alt); cursor: pointer; }
.brand-logo { display: block; width: 64px; height: 64px; object-fit: contain; border-radius: 12px; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.theme-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.theme-control select { padding: 8px 28px 8px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); background: var(--surface-alt); cursor: pointer; }
.brand-divider { width: 1px; height: 22px; background: var(--border); margin: 0 8px; }
.brand-label { font: 500 13px 'DM Sans', sans-serif; letter-spacing: 0; color: var(--muted); }
.manifest-link { font-size: 12px; font-weight: 550; text-decoration: none; display: flex; gap: 12px; align-items: center; }
.manifest-link:hover { color: var(--accent); }
main { max-width: 1600px; margin: auto; padding: 0 5%; }
.intro { display: flex; justify-content: space-between; align-items: center; padding: 54px 0 44px; gap: 32px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.eyebrow span { height: 6px; width: 6px; background: var(--accent); border-radius: 50%; }
h1 { font: 750 clamp(32px, 3.5vw, 48px)/1.15 'Manrope', sans-serif; letter-spacing: -2px; margin: 17px 0; }
.intro p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.mobile-break { display: none; }
.collection-note { min-width: 245px; padding-right: 15px; }
.collection-note strong { display: block; font: 650 50px/1.15 'Manrope', sans-serif; letter-spacing: -2.5px; }
.collection-note>span { font-size: 13px; color: var(--muted); display: block; margin-top: 6px; }
.note-rule { height: 1px; background: var(--border); margin: 19px 0 12px; }
.collection-note small { font-size: 11px; color: var(--muted); }
.library { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: clip; box-shadow: 0 3px 12px #26233d03; }
.toolbar { display: flex; padding: 22px 26px; border-bottom: 1px solid var(--border); align-items: center; gap: 28px; }
.search-wrap { display: flex; align-items: center; flex: 1; position: relative; background: var(--page); border: 1px solid var(--border); border-radius: 8px; padding: 0 14px; gap: 10px; }
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #6050d712; }
.search-wrap svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--subtle); }
.search-wrap input { padding: 13px 0; width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: none; font-size: 13px; }
.search-wrap input::placeholder { color: var(--subtle); }
kbd { font: 12px monospace; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--subtle); padding: 1px 7px; }
.preview-control { display: flex; align-items: center; gap: 13px; font-size: 12px; color: var(--muted); }
.segmented { display: flex; background: var(--surface-alt); padding: 3px; border-radius: 7px; }
.segmented button { display: flex; gap: 6px; align-items: center; background: transparent; color: var(--muted); font-size: 12px; border: 0; border-radius: 5px; padding: 7px 11px; }
.segmented button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px #28273515; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 272px; align-items: start; }
.results { padding: 25px 26px; border-right: 1px solid var(--border); min-height: 650px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { padding: 7px 11px; border: 1px solid transparent; background: transparent; color: var(--subtle); font-size: 12px; font-weight: 500; border-radius: 6px; }
.filters button[aria-pressed=true] { background: var(--chip); color: var(--chip-ink); border-color: var(--chip-border); }
.filters span { font-size: 10px; margin-left: 5px; opacity: .8; }
.results-heading { margin: 22px 0 17px; display: flex; gap: 16px; align-items: center; justify-content: space-between; font-size: 11px; color: var(--subtle); }
.results-heading p { margin: 0; color: var(--muted); }
.results-heading>span { white-space: nowrap; font-size: 10px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 12px; }
.icon-card { position: relative; min-width: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.icon-card:hover { border-color: #bcb3ef; box-shadow: 0 3px 12px #5048870c; }
.icon-card:has([aria-pressed=true]) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.icon-select { display: block; padding: 0; width: 100%; border: 0; background: transparent; text-align: center; color: inherit; }
.icon-select:focus-visible { outline-offset: -4px; }
.card-preview { display: flex; height: 82px; align-items: center; justify-content: center; margin: 5px; border-radius: 5px; background: #fafbfc; }
.card-preview img { max-width: 48px; max-height: 48px; object-fit: contain; }
.icon-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 10px 3px; font-size: 11px; }
.card-copy { display: block; margin: 0 auto 7px; border: 0; padding: 5px 10px; font-size: 10px; color: var(--subtle); background: transparent; border-radius: 4px; }
.card-copy:hover, .card-copy:focus-visible { background: var(--chip); color: var(--accent); }
.detail { padding: 26px 22px; position: sticky; top: 20px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; font-size: 9px; letter-spacing: 1.4px; color: var(--subtle); font-weight: 650; }
.format-label { background: var(--surface-alt); color: var(--subtle); border-radius: 4px; padding: 4px 6px; font-size: 9px; letter-spacing: .3px; }
.detail-preview { height: 166px; border: 1px solid var(--border); border-radius: 9px; margin: 19px 0 12px; display: flex; align-items: center; justify-content: center; background-color: #fafbfc; background-image: linear-gradient(45deg,#eef0f4 25%,transparent 25%),linear-gradient(-45deg,#eef0f4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef0f4 75%),linear-gradient(-45deg,transparent 75%,#eef0f4 75%); background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.detail-preview img { max-width: 96px; max-height: 96px; min-width: 48px; object-fit: contain; image-rendering: auto; }
#detail-placeholder { font-size: 48px; color: #b3afcb; }
.dimensions { text-align: center; font-size: 10px; color: var(--subtle); }
.detail h2 { font: 700 18px 'Manrope', sans-serif; letter-spacing: -.4px; margin: 24px 0 9px; overflow-wrap: anywhere; user-select: all; }
.detail-description { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 21px; }
.primary-button { border-radius: 7px; width: 100%; font-weight: 550; font-size: 12px; padding: 12px 10px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.primary-button { color: white; background: var(--button); border: 1px solid var(--button); }
.primary-button:hover { background: var(--button-hover); }
.primary-button svg { width: 16px; height: 16px; }
.usage { border-top: 1px solid var(--border); margin-top: 25px; padding-top: 22px; }
.usage>span { font-size: 9px; letter-spacing: 1px; color: var(--subtle); font-weight: 600; }
.usage>code { display: block; font-size: 11px; padding: 13px 10px; margin-top: 11px; border-radius: 5px; background: var(--code); color: var(--code-ink); overflow-wrap: anywhere; user-select: all; }
.usage p { color: var(--subtle); line-height: 1.8; font-size: 11px; }
.usage p code { font-size: 10px; }
.open-image { display: flex; gap: 8px; justify-content: center; font-size: 11px; color: var(--subtle); margin-top: 23px; text-decoration: none; }
body[data-preview=dark] .preview-surface { background-color: #292b35; background-image: none; }
.broken-preview { color: var(--muted); font-size: 10px; }
.load-more-wrap { text-align: center; padding-top: 28px; }
#load-more, .empty-state button { padding: 10px 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
#load-more span { margin-left: 14px; }
#shown-count { color: var(--subtle); font-size: 10px; margin: 13px 0 0; }
.empty-state { text-align: center; padding: 70px 15px; }
.empty-state>span { font-size: 40px; color: var(--accent); }
.empty-state h2 { font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.7; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 25px 0 32px; color: var(--subtle); font-size: 10px; }
.footer-separator { margin: 0 9px; color: var(--subtle); }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); padding: 13px 20px; border: 1px solid #494356; border-radius: 9px; background: #292532; color: white; font-size: 13px; max-width: min(90vw, 600px); overflow-wrap: anywhere; box-shadow: 0 7px 30px #29253225; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscript { padding: 20px; text-align: center; }
@media (min-width: 1450px) { .icon-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
@media (max-width: 1000px) { .workspace { grid-template-columns: minmax(0, 1fr) 238px; } .results { padding: 20px; } .detail { padding: 22px 17px; } .icon-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 9px; } .collection-note { min-width: 210px; } }
@media (max-width: 720px) {
  .topbar { height: 76px; }
  .brand-logo { width: 54px; height: 54px; }
  .header-actions { gap: 14px; }
  .theme-control label, .brand-label, .brand-divider { display: none; }
  .theme-control select { padding: 7px; font-size: 11px; }
  .manifest-link { font-size: 11px; }
  .intro { padding: 35px 0 30px; }
  h1 { letter-spacing: -1.3px; }
  .intro p { font-size: 12px; }
  .collection-note { display: none; }
  .toolbar { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .search-wrap { flex-basis: 100%; }
  .preview-control { margin-left: auto; }
  .workspace { display: flex; flex-direction: column; }
  .results { border-right: 0; padding: 18px 16px; width: 100%; min-height: 350px; }
  .detail { position: static; width: 100%; border-top: 1px solid var(--border); padding: 24px; }
  .detail-preview { height: 140px; }
  .icon-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); }
  .results-heading>span { display: none; }
  .filters { gap: 2px; }
  .filters button { font-size: 11px; padding: 7px 9px; }
  .mobile-break { display: initial; }
  footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
