:root {
  --navy: #102b4e;
  --navy-2: #183b66;
  --blue: #1473e6;
  --blue-soft: #eaf3ff;
  --yellow: #ffd448;
  --ink: #15243a;
  --muted: #68778c;
  --line: #dfe5ed;
  --surface: #ffffff;
  --canvas: #f3f5f8;
  --shadow: 0 20px 55px rgba(15, 42, 76, .14);
  --radius: 15px;
  --container: 1380px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open { overflow: hidden; }

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }

a { color: inherit; text-decoration: none; }

svg { display: block; }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(223, 229, 237, .86);
  backdrop-filter: blur(18px);
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-weight: 950;
  letter-spacing: .085em;
  font-size: 16px;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.icon-button {
  min-width: 41px;
  height: 41px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}

.icon-button:hover { border-color: #b8c8da; color: var(--blue); transform: translateY(-1px); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.is-active svg { fill: #ef476f; color: #ef476f; }
.icon-button span { font-size: 11px; font-weight: 800; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 58px;
  background:
    radial-gradient(circle at 10% -20%, rgba(20, 115, 230, .15), transparent 33%),
    radial-gradient(circle at 88% 18%, rgba(255, 212, 72, .17), transparent 24%),
    #fff;
  border-bottom: 1px solid var(--line);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(20, 115, 230, .08);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before { width: 280px; height: 280px; left: -170px; top: -120px; }
.hero::after { width: 380px; height: 380px; right: -240px; bottom: -260px; }

.hero-inner { position: relative; z-index: 1; text-align: center; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
}

.hero h1 { margin: 0; color: var(--navy); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.045em; }

.hero-copy { max-width: 730px; margin: 18px auto 30px; color: var(--muted); font-size: 16px; }

.search-form {
  position: relative;
  width: min(100%, 860px);
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 20px;
  border: 2px solid var(--navy);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 43, 78, .12);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.search-form:focus-within { border-color: var(--blue); box-shadow: 0 20px 55px rgba(20, 115, 230, .17); transform: translateY(-1px); }
.search-form > svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; }
.search-form input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-form input::placeholder { color: #8b98aa; }
.search-form input::-webkit-search-cancel-button, .search-form input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.search-form input::-ms-clear { display: none; width: 0; height: 0; }
.search-form kbd { padding: 3px 8px; color: #8c98a8; border: 1px solid #d9e0e9; border-bottom-width: 2px; border-radius: 6px; background: #f7f9fb; font-size: 12px; }

.clear-search {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #77869a;
  background: #eef2f6;
  cursor: pointer;
}

.clear-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-button { height: 48px; padding: 0 25px; border: 0; border-radius: 11px; color: #fff; background: var(--blue); font-weight: 780; cursor: pointer; box-shadow: 0 8px 18px rgba(20, 115, 230, .24); transition: background .2s, transform .2s; }
.search-button:hover { background: #075fbd; transform: translateY(-1px); }

.search-examples { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: #8390a1; font-size: 12px; }
.search-examples button { padding: 5px 10px; border: 1px solid #dfe6ee; border-radius: 999px; color: #52657d; background: rgba(255,255,255,.78); cursor: pointer; transition: all .2s; }
.search-examples button:hover { color: var(--blue); border-color: #aacdf6; background: var(--blue-soft); }

.catalog-toolbar { position: sticky; top: 72px; z-index: 20; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.toolbar-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.style-select-control {
  min-width: 285px;
  height: 43px;
  padding: 0 10px 0 13px;
  display: grid;
  grid-template-columns: 18px auto minmax(130px, 1fr);
  align-items: center;
  gap: 9px;
  color: #617187;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
  font-weight: 730;
}

.style-select-control > svg { width: 17px; height: 17px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linejoin: round; }
.style-select-control select { min-width: 0; width: 100%; height: 31px; padding: 0 28px 0 10px; color: var(--navy); border: 0; border-left: 1px solid var(--line); outline: 0; background: #fff; font-size: 12px; font-weight: 780; cursor: pointer; }

.view-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #f5f7fa; }
.view-tabs button { min-width: 76px; height: 35px; padding: 0 14px; border: 0; border-radius: 8px; color: #607188; background: transparent; cursor: pointer; font-size: 12px; font-weight: 740; }
.view-tabs button.active { color: #fff; background: var(--navy); box-shadow: 0 4px 12px rgba(16,43,78,.16); }

.toolbar-meta { display: flex; align-items: center; gap: 12px; }
.sort-button { height: 43px; padding: 0 14px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; color: #53657b; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
.sort-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grid-density { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.grid-density button { width: 42px; height: 41px; display: grid; place-items: center; border: 0; border-right: 1px solid var(--line); color: #8290a2; background: #fff; cursor: pointer; }
.grid-density button:last-child { border-right: 0; }
.grid-density button.active { color: var(--blue); background: var(--blue-soft); }
.grid-density svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.grid-density button:last-child svg { fill: currentColor; stroke: none; }

.mobile-filter-button { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; font-weight: 750; }
.mobile-filter-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.catalog-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 34px; padding-top: 36px; padding-bottom: 80px; }

.sidebar { min-width: 0; }
.sidebar-mobile-head { display: none; }
.filter-section { padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.filter-section h2 { margin: 0 0 12px; color: #8290a2; font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.filter-row { width: 100%; min-height: 42px; padding: 6px 8px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 0; border-radius: 8px; color: #5e6f84; background: transparent; cursor: pointer; text-align: left; font-size: 12px; transition: color .18s, background .18s; }
.filter-row:hover { color: var(--navy); background: #e9edf3; }
.filter-row.active { color: var(--blue); background: #e5f1ff; font-weight: 750; }
.filter-row b { color: #8a98aa; font-size: 10px; font-weight: 650; }
.filter-row.active b { color: var(--blue); }
.filter-icon { display: grid; place-items: center; }
.filter-icon svg { width: 15px; height: 15px; fill: currentColor; }
.filter-icon.pack-preview svg { width: 21px; height: 21px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; }
.section-title-row button { padding: 0; border: 0; color: var(--blue); background: none; cursor: pointer; font-size: 10px; font-weight: 700; }
.categories-section #categoryFilters { max-height: 615px; padding-right: 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c9d3df transparent; }
.style-filter-list { padding-right: 2px; }

.results { min-width: 0; }
.results-head { min-height: 64px; margin-bottom: 21px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.results-kicker { margin: 0 0 3px; color: #8b98a9; font-size: 10px; font-weight: 820; letter-spacing: .12em; }
.results-head h2 { margin: 0; color: var(--navy); font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.results-head h2 small { margin-left: 6px; color: #8390a2; font-size: 11px; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.understood-query { margin: 5px 0 0; color: var(--blue); font-size: 11px; }
.page-counter { margin: 6px 0 0; color: #8694a5; font-size: 11px; }

.icon-grid { --card-min: 116px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: 12px; }
.icon-grid.compact { --card-min: 92px; gap: 9px; }

.icon-card {
  position: relative;
  min-width: 0;
  height: 126px;
  padding: 15px 10px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid #e8edf2;
  border-radius: 12px;
  color: var(--navy);
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 3px 11px rgba(16,43,78,.035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.compact .icon-card { height: 104px; padding: 12px 8px 9px; gap: 9px; }
.icon-card:hover, .icon-card:focus-visible { z-index: 1; color: var(--blue); border-color: #94c4fb; outline: 0; box-shadow: 0 12px 28px rgba(20,115,230,.13); transform: translateY(-3px); }
.icon-card.selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.card-svg { width: 38px; height: 38px; display: grid; place-items: center; transition: transform .2s; }
.compact .card-svg { width: 31px; height: 31px; }
.icon-card:hover .card-svg { transform: scale(1.08); }
.card-svg svg { width: 100%; height: 100%; fill: currentColor; }
.icon-card-name { width: 100%; overflow: hidden; color: #69798d; font-size: 10px; line-height: 1.2; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.icon-card:hover .icon-card-name { color: var(--blue); }
.card-style-badge { position: absolute; left: 8px; top: 8px; padding: 2px 5px; color: #708197; background: #f0f3f7; border-radius: 5px; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.favorite-card-button { position: absolute; right: 7px; top: 7px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #a0abba; background: transparent; opacity: 0; cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.icon-card:hover .favorite-card-button, .favorite-card-button.is-favorite, .favorite-card-button:focus-visible { opacity: 1; }
.favorite-card-button:hover { color: #ef476f; background: #fff0f4; }
.favorite-card-button.is-favorite { color: #ef476f; }
.favorite-card-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite-card-button.is-favorite svg { fill: currentColor; }

.empty-state { padding: 80px 24px; text-align: center; color: var(--muted); }
.empty-icon { width: 70px; height: 70px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 22px; }
.empty-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h3 { margin: 0 0 7px; color: var(--navy); font-size: 21px; }
.empty-state p { margin: 0 0 21px; }
.empty-state button { height: 42px; padding: 0 17px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); cursor: pointer; font-weight: 730; }

.pagination { min-height: 42px; margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.pagination button { min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; color: #65758a; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.pagination button:hover { color: var(--blue); background: #e6f1ff; }
.pagination button.active { color: #fff; background: var(--blue); box-shadow: 0 6px 15px rgba(20,115,230,.24); }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination span { color: #a1aab7; }

.icon-dialog {
  width: min(calc(100% - 36px), 1120px);
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow);
}

.icon-dialog::backdrop { background: rgba(16, 43, 78, .58); backdrop-filter: blur(6px); }
.dialog-shell { position: relative; max-height: calc(100vh - 36px); display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 20px; }
.dialog-close { position: absolute; z-index: 3; top: 18px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--navy); cursor: pointer; transition: transform .2s, background .2s; }
.dialog-close:hover { background: var(--blue); transform: rotate(4deg); }
.dialog-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dialog-header { min-height: 92px; padding: 24px 78px 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.dialog-header p { margin: 0 0 3px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.dialog-header h2 { margin: 0; color: var(--navy); font-size: 29px; line-height: 1.1; letter-spacing: -.025em; }
.dialog-header-actions { display: flex; align-items: center; gap: 10px; }
.favorite-dialog-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #8d99aa; background: #fff; cursor: pointer; }
.favorite-dialog-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorite-dialog-button.is-favorite { color: #ef476f; border-color: #ffc9d6; background: #fff4f7; }
.favorite-dialog-button.is-favorite svg { fill: currentColor; }

.dialog-variants { min-height: 92px; padding: 12px 78px 12px 32px; display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.dialog-variants-heading { display: grid; gap: 2px; color: #748399; }
.dialog-variants-heading strong { color: var(--navy); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.dialog-variants-heading span { font-size: 9px; }
.dialog-variant-cards { min-width: 0; padding: 3px 2px 7px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #cbd6e3 transparent; }
.dialog-variant-card { position: relative; width: 66px; height: 64px; flex: 0 0 66px; padding: 7px 5px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; scroll-snap-align: start; color: #5e7189; border: 1px solid #dce4ed; border-radius: 10px; background: #fff; cursor: pointer; transition: color .18s, border-color .18s, box-shadow .18s, transform .18s; }
.dialog-variant-card:hover { color: var(--blue); border-color: #9ac7fa; transform: translateY(-1px); }
.dialog-variant-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dialog-variant-card.active { color: var(--blue); border-color: var(--blue); background: #edf6ff; box-shadow: 0 0 0 2px rgba(20,115,230,.11); }
.dialog-variant-card svg { width: 27px; height: 27px; fill: currentColor; }
.dialog-variant-card span { width: 100%; overflow: hidden; font-size: 7px; font-weight: 820; line-height: 1; text-align: center; white-space: nowrap; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .035em; }
.dialog-variant-card::after { content: ""; position: absolute; right: 5px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.dialog-variant-card.active::after { background: var(--blue); }

.dialog-content { min-height: 0; flex: 1; display: grid; grid-template-columns: .88fr 1.12fr; overflow-y: auto; }
.preview-panel { padding: 30px; display: flex; flex-direction: column; gap: 21px; border-right: 1px solid var(--line); background: #fbfcfe; }
.icon-preview { min-height: 310px; flex: 1; display: grid; place-items: center; overflow: hidden; color: var(--navy); border: 1px solid #e2e8f0; border-radius: 15px; background: #fff; background-image: linear-gradient(45deg,#f7f9fb 25%,transparent 25%),linear-gradient(-45deg,#f7f9fb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f7f9fb 75%),linear-gradient(-45deg,transparent 75%,#f7f9fb 75%); background-size: 24px 24px; background-position: 0 0,0 12px,12px -12px,-12px 0; }
.icon-preview svg { width: var(--preview-size,180px); height: var(--preview-size,180px); max-width: 80%; max-height: 80%; fill: currentColor; filter: drop-shadow(0 8px 15px rgba(16,43,78,.08)); transition: width .12s, height .12s, color .12s; }
.preview-controls { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: end; }
.color-control, .size-control { display: grid; gap: 6px; color: #6a798d; font-size: 10px; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.color-control { grid-template-columns: auto 35px 1fr; align-items: center; }
.color-control input { width: 35px; height: 30px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.color-control output { min-width: 72px; padding: 7px 9px; color: var(--navy); border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 10px; letter-spacing: .04em; text-align: center; }
.swatches { display: flex; gap: 6px; }
.swatches button { width: 25px; height: 25px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #d9e0e8; cursor: pointer; }
.size-control { grid-column: 1 / -1; }
.size-control span { display: flex; justify-content: space-between; }
.size-control input { width: 100%; accent-color: var(--blue); }

.code-panel { min-width: 0; padding: 30px; display: flex; flex-direction: column; }
.code-tabs { display: flex; gap: 3px; padding: 4px; align-self: flex-start; background: #eef2f6; border-radius: 10px; }
.code-tabs button { min-width: 76px; height: 34px; border: 0; border-radius: 7px; color: #65768b; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.code-tabs button.active { color: #fff; background: var(--navy); }
.code-box { position: relative; min-height: 200px; margin-top: 14px; overflow: hidden; color: #d9e9ff; background: var(--navy); border-radius: 13px; }
.code-box pre { max-height: 235px; margin: 0; padding: 23px 23px 58px; overflow: auto; scrollbar-width: thin; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-box code { font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-code-button { position: absolute; right: 12px; bottom: 12px; height: 34px; padding: 0 12px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.17); border-radius: 8px; color: #fff; background: rgba(255,255,255,.09); cursor: pointer; font-size: 10px; font-weight: 750; }
.copy-code-button:hover { background: rgba(255,255,255,.16); }
.copy-code-button svg, .secondary-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dialog-tags { min-height: 30px; margin-top: 15px; display: flex; flex-wrap: wrap; gap: 6px; }
.dialog-tags span { padding: 4px 8px; color: #52709a; background: #edf4fc; border-radius: 999px; font-size: 9px; font-weight: 750; }
.download-actions { margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.primary-download, .secondary-copy { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; cursor: pointer; font-weight: 800; }
.primary-download { border: 0; color: var(--navy); background: var(--yellow); box-shadow: 0 7px 0 #e6b90e; transition: transform .15s, box-shadow .15s; }
.primary-download:hover { transform: translateY(2px); box-shadow: 0 5px 0 #e6b90e; }
.primary-download svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secondary-copy { border: 1px solid var(--navy); color: var(--navy); background: #fff; }
.secondary-copy:hover { color: #fff; background: var(--navy); }
.dialog-nav { min-height: 58px; padding: 10px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: #f8fafc; }
.dialog-nav button { display: flex; align-items: center; gap: 5px; border: 0; color: #5f7187; background: none; cursor: pointer; font-size: 11px; font-weight: 730; }
.dialog-nav button:disabled { opacity: .3; cursor: default; }
.dialog-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dialog-nav span { color: #8c99a9; font-size: 10px; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 230px; padding: 12px 15px; color: #fff; background: var(--navy); border-radius: 10px; box-shadow: 0 12px 32px rgba(16,43,78,.25); font-size: 12px; font-weight: 700; animation: toast-in .25s ease both; }
.toast.out { animation: toast-out .2s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

.filter-backdrop { display: none; }

@media (max-width: 1050px) {
  .catalog-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 25px; }
  .dialog-content { grid-template-columns: .78fr 1.22fr; }
  .preview-panel, .code-panel { padding: 24px; }
  .icon-preview { min-height: 270px; }
}

@media (max-width: 800px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .hero { padding: 48px 0 42px; }
  .hero-copy { font-size: 14px; }
  .catalog-toolbar { top: 72px; }
  .mobile-filter-button { display: inline-flex; }
  .style-select-control { min-width: 0; width: min(100%, 310px); margin-right: auto; }
  .sort-button span { display: none; }
  .grid-density { display: none; }
  .catalog-layout { display: block; padding-top: 28px; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: min(86vw, 315px); padding: 20px; overflow-y: auto; background: #fff; box-shadow: 18px 0 45px rgba(16,43,78,.2); transform: translateX(-105%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-mobile-head { margin-bottom: 23px; display: flex; align-items: center; justify-content: space-between; }
  .sidebar-mobile-head strong { color: var(--navy); font-size: 18px; }
  .sidebar-mobile-head button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #eef2f6; }
  .sidebar-mobile-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .filter-backdrop { position: fixed; z-index: 55; inset: 0; background: rgba(16,43,78,.48); }
  .filter-backdrop.open { display: block; }
  .dialog-variants { padding: 11px 18px; grid-template-columns: 72px minmax(0,1fr); }
  .dialog-content { grid-template-columns: 1fr; max-height: calc(100vh - 250px); overflow-y: auto; }
  .preview-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .icon-preview { min-height: 245px; }
  .dialog-nav { display: none; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .topbar { min-height: 62px; }
  .brand { font-size: 15px; }
  .hero { padding: 38px 0 32px; }
  .hero h1 { font-size: 35px; }
  .hero-copy { margin: 13px auto 22px; }
  .search-form { height: 58px; padding-left: 15px; border-radius: 14px; }
  .search-form kbd, .search-button { display: none; }
  .search-examples span { width: 100%; }
  .catalog-toolbar { top: 62px; }
  .toolbar-inner { min-height: 59px; gap: 8px; }
  .style-select-control { height: 42px; grid-template-columns: 18px minmax(0,1fr); padding-inline: 10px; }
  .style-select-control > span { display: none; }
  .style-select-control select { border-left: 0; padding-left: 4px; }
  .sort-button { padding: 0 11px; }
  .mobile-filter-button { padding: 0 11px; font-size: 0; }
  .mobile-filter-button svg { margin: 0; }
  .results-head { min-height: 54px; margin-bottom: 15px; }
  .results-head h2 { font-size: 19px; }
  .page-counter { display: none; }
  .icon-grid { --card-min: 92px; gap: 8px; }
  .icon-card { height: 108px; gap: 9px; padding-inline: 7px; }
  .card-svg { width: 32px; height: 32px; }
  .card-style-badge { display: none; }
  .favorite-card-button { opacity: 1; }
  .pagination button { min-width: 34px; height: 35px; padding-inline: 8px; }
  .icon-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); }
  .dialog-shell { border-radius: 15px; }
  .dialog-header { min-height: 78px; padding: 18px 60px 16px 20px; }
  .dialog-header h2 { max-width: 260px; overflow: hidden; font-size: 22px; white-space: nowrap; text-overflow: ellipsis; }
  .dialog-header-actions { display: none; }
  .favorite-dialog-button { display: none; }
  .dialog-variants { min-height: 86px; padding: 9px 14px; display: block; }
  .dialog-variants-heading { margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
  .dialog-variant-cards { gap: 6px; }
  .dialog-variant-card { width: 60px; height: 58px; flex-basis: 60px; }
  .dialog-variant-card svg { width: 24px; height: 24px; }
  .dialog-close { top: 16px; right: 15px; }
  .dialog-content { max-height: calc(100vh - 220px); }
  .preview-panel, .code-panel { padding: 18px; }
  .icon-preview { min-height: 215px; }
  .preview-controls { grid-template-columns: 1fr; }
  .swatches { grid-row: 2; }
  .size-control { grid-column: auto; }
  .code-tabs { width: 100%; }
  .code-tabs button { flex: 1; min-width: 0; }
  .download-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
