/* FasterUI gallery. One stylesheet, tokens on :root. */
:root {
  --page: #ffffff;
  --text: #0b0b0c;
  --text-2: #55565b;
  --text-3: #8a8b90;
  --line: #ebebed;
  --soft: #f4f4f5;
  --soft-2: #ececee;
  --brand: #ff5a1f;
  --brand-ink: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --side: 248px;
  --gutter: 24px;
  --site-max: 1480px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 var(--gutter); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--text); display: grid; place-items: center; }
.logo-mark svg { width: 14px; height: 14px; }
.tabs { display: flex; gap: 4px; }
.tab { padding: 7px 12px; border-radius: 999px; color: var(--text-2); font-weight: 500; }
.tab:hover { background: var(--soft); color: var(--text); }
.tab[aria-current="page"] { background: var(--text); color: #fff; }
.search { flex: 1; max-width: 460px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 38px; border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 0 14px 0 36px; font: inherit; outline: none; }
.search input:focus { background: #fff; border-color: var(--text-3); }
.search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--text-3); }
.pill-free { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--text-2); white-space: nowrap; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: var(--side) 1fr; min-height: calc(100vh - 60px); }
.sidebar { border-right: 1px solid var(--line); padding: 18px 16px 40px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; overflow-x: hidden; }
.main { padding: 20px var(--gutter) 60px; min-width: 0; }

.fgroup { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.fopt { display: flex; align-items: center; gap: 8px; width: calc(100% + 16px); padding: 5px 8px; margin: 0 -8px; border: 0; background: none; border-radius: 6px; text-align: left; color: var(--text-2); }
.fopt:hover { background: var(--soft); color: var(--text); }
.fopt[aria-pressed="true"] { color: var(--text); font-weight: 600; background: var(--soft); }
.fopt .n { margin-left: auto; font-size: 12px; color: var(--text-3); font-weight: 400; }
.fopt .box { width: 14px; height: 14px; border: 1.5px solid var(--soft-2); border-radius: 4px; flex: none; }
.fopt[aria-pressed="true"] .box { background: var(--text); border-color: var(--text); }
.fsub { font-size: 11px; color: var(--text-3); margin: 8px 0 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); padding: 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar h1 { font-size: 20px; letter-spacing: -.02em; margin: 0; }
.toolbar .count { color: var(--text-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 500; border: 0; }
.chip span { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.chip:hover span { background: var(--soft-2); color: var(--text); }
.clear { border: 0; background: none; color: var(--text-2); font-size: 12px; text-decoration: underline; }
.btn-filters { display: none; }

/* ---------- site cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 20px; }
.card-img { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.02); }
.card-meta { display: flex; align-items: center; gap: 10px; padding: 10px 2px 0; }
.card-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 12px; color: var(--text-3); }
.dots { display: flex; margin-left: auto; flex: none; }
.dots i { width: 12px; height: 12px; border-radius: 50%; margin-left: -3px; box-shadow: 0 0 0 1.5px #fff, inset 0 0 0 1px rgba(0,0,0,.1); }

/* ---------- section grid (uniform 16:10 frames) ---------- */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 32px 20px; }
.scard { display: block; width: 100%; border: 0; background: none; padding: 0; text-align: left; }
.scard-img { aspect-ratio: 16 / 10; display: flex; align-items: center; overflow: hidden; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); transition: border-color .2s; }
.scard-img.tall { align-items: flex-start; }
.scard-img img { width: 100%; height: auto; flex: none; }
.scard:hover .scard-img { border-color: var(--text-3); }
.scard-meta { display: flex; gap: 10px; align-items: baseline; padding: 10px 2px 0; }
.scard-meta b { font-size: 15px; font-weight: 600; }
.scard-meta .site { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 11px; color: var(--text-2); }

.more { display: block; margin: 32px auto 0; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.more:hover { border-color: var(--text-3); }
.empty { padding: 80px 0; text-align: center; color: var(--text-3); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(10,10,12,.72); display: none; }
.lb.open { display: block; }
.lb-panel { position: absolute; inset: 24px; background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.lb-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lb-head .grow { flex: 1; min-width: 0; }
.lb-body { overflow: auto; flex: 1; background: var(--soft); padding: 24px; }
.lb-body img { margin: 0 auto; max-width: 1200px; width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: var(--text-3); }
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: #2a2a2e; }
.iconbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; }

/* ---------- site page ---------- */
/* site page content is capped and centred; padding (not max-width) keeps the head's rule full width */
.site-head, .site-layout { --site-pad: max(var(--gutter), calc((100% - var(--site-max)) / 2)); padding-left: var(--site-pad); padding-right: var(--site-pad); }
.site-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.site-head h1 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 4px; }
.site-head .sub { color: var(--text-2); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.site-head .actions { margin-left: auto; display: flex; gap: 8px; }
.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 20px; padding-bottom: 60px; align-items: start; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; color: var(--text-2); font-size: 13px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.stack figure { margin: 0; }
.stack figcaption { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--text-2); }
.stack figcaption b { color: var(--text); }
.sec-desc { flex-basis: 100%; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.lb-head .sec-desc { margin-top: 4px; }
.stack img { width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--line); }
.mobile-frame { width: 390px; max-width: 100%; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.panel { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - 96px); overflow-y: auto; overflow-x: hidden; padding-right: 4px; scrollbar-width: thin; }
.panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 0 0 10px; }
.main-color { display: flex; gap: 14px; align-items: center; width: 100%; border: 0; padding: 0; background: none; text-align: left; }
.main-color i { width: 72px; height: 72px; flex: none; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.main-color span { display: grid; gap: 2px; }
.main-color b { font-size: 16px; }
.main-color code { font: 12px var(--mono); color: var(--text-2); }
.main-color small { font-size: 12px; color: var(--text-3); }
.pal-list { display: grid; gap: 2px; }
.pal-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 8px; background: none; text-align: left; }
.pal-list button:hover { background: var(--soft); }
.pal-list i { width: 28px; height: 28px; flex: none; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pl-name { display: grid; min-width: 0; flex: 1; }
.pl-name b { font-size: 13px; font-weight: 600; }
.pl-name small { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-list code { font: 12px var(--mono); color: var(--text-2); }
.pal-text { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-2); }
a.tag:hover { background: var(--soft-2); color: var(--text); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; }
.tscale { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tscale th, .tscale td { padding: 4px 0; text-align: right; border-bottom: 1px solid var(--line); }
.tscale th:first-child { text-align: left; }
.tscale thead th { font-weight: 500; color: var(--text-3); }
.tscale tbody th { font-weight: 600; }
.btn-specs { display: grid; gap: 12px; }
.btn-spec { display: grid; gap: 6px; justify-items: start; }
.btn-spec small { font-size: 12px; color: var(--text-3); }
.btn-sample { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; white-space: nowrap; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.order { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); display: grid; gap: 2px; }
.order a:hover { color: var(--text); text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- accounts: sign in, consent, account ---------- */
.auth-wrap { min-height: calc(100vh - 60px); display: grid; place-items: start center; padding: 72px var(--gutter) 40px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 8px; }
.auth-sub { color: var(--text-2); margin: 0 0 22px; }
.btn-wide { width: 100%; height: 44px; justify-content: center; font-size: 14px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 18px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 10px; }
.auth-form label { font-size: 13px; font-weight: 600; }
.auth-form input[type=email], .row-form input { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; outline: none; }
.auth-form input:focus, .row-form input:focus { border-color: var(--text-3); }
.auth-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400 !important; color: var(--text-2); }
.auth-msg { margin: 16px 0 0; font-size: 13px; color: var(--text-2); }
.auth-msg.bad { color: #c2410c; }
.consent-list { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 6px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.consent-actions .btn { height: 40px; padding: 0 20px; }
.acct { max-width: 860px; margin: 0 auto; padding: 32px var(--gutter) 60px; }
.acct-head h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 4px; }
.acct-box { border-top: 1px solid var(--line); padding: 24px 0; }
.acct-box h2 { font-size: 17px; margin: 0 0 6px; }
.acct-box > p { color: var(--text-2); margin: 0 0 14px; }
.small { font-size: 13px; margin: 12px 0 6px; }
.muted { color: var(--text-3); }
.code { position: relative; background: var(--text); color: #e8e8ea; border-radius: 10px; padding: 14px 90px 14px 16px; }
.code pre { margin: 0; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; }
.code .btn { position: absolute; top: 10px; right: 10px; height: 28px; background: #2a2a2e; color: #fff; border-color: #3a3a3f; }
.row-form { display: flex; gap: 8px; margin-bottom: 14px; }
.row-form input { flex: 1; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--text-3); font-weight: 600; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.tbl tr.muted td { color: var(--text-3); }
.meter { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; margin-bottom: 16px; }
.meter i { display: block; height: 100%; background: var(--text); border-radius: 999px; }
.notice { background: var(--soft); border-radius: 10px; padding: 12px; margin-bottom: 14px; font-size: 13px; display: grid; gap: 8px; }

/* ---------- top bar account slot ---------- */
.auth-slot { display: flex; align-items: center; gap: 8px; }
.btn-ghost { border-color: transparent; background: none; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); border-color: transparent; background: var(--soft); }
a.iconbtn:hover, a.iconbtn[aria-current="page"] { background: var(--text); color: #fff; }
.btn-save svg { width: 14px; height: 14px; }
.btn-save[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- save to collection dialog ---------- */
.dlg { position: fixed; inset: 0; z-index: 70; background: rgba(10,10,12,.5); display: grid; place-items: center; padding: 16px; }
.dlg-panel { width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 16px; padding: 18px 20px 20px; box-shadow: var(--shadow); }
.dlg-head { display: flex; align-items: center; gap: 12px; }
.dlg-head h2 { flex: 1; margin: 0; font-size: 17px; }
.dlg-sub { margin: 4px 0 14px; color: var(--text-2); font-size: 13px; }
.dlg-list { display: grid; gap: 2px; margin-bottom: 14px; }
.dlg-item { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; }
.dlg-item:hover { background: var(--soft); }
.dlg-item input { width: 16px; height: 16px; accent-color: var(--text); }
.dlg-item span { flex: 1; font-weight: 500; }
.dlg-item small { color: var(--text-3); font-size: 12px; }
.dlg .row-form input { height: 38px; }
.dlg .row-form .btn { height: 38px; }

/* ---------- collections and submit pages ---------- */
.page-wrap { max-width: var(--site-max); margin: 0 auto; padding: 28px var(--gutter) 60px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 28px; letter-spacing: -.02em; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 20px; }
.coll-cover { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.coll-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.coll-cover img:first-child { grid-row: span 2; }
.coll-cover.one img:first-child { grid-column: span 2; }
.coll-cover.two { grid-template-columns: 1fr 1fr; }
.coll-cover.two img { grid-row: span 2; }
.coll-card .card-sub { color: var(--text-3); font-size: 13px; }
.item-wrap { position: relative; }
.item-remove { position: absolute; top: 8px; right: 8px; z-index: 2; box-shadow: var(--shadow); background: #fff; }
.item-note { margin: 4px 2px 0; font-size: 12.5px; color: var(--text-2); }
.form-grid { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field small { color: var(--text-3); font-size: 12px; }
.field input[type=url], .field input[type=text], .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; outline: none; background: #fff; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--text-3); }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--soft); color: var(--text-2); }
.status-approved { background: var(--text); color: #fff; }

/* ---------- text pages (connect, privacy, terms, removal) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 8px; }
.prose h2 { font-size: 18px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text-2); line-height: 1.7; }
.prose .lead { font-size: 16px; color: var(--text); }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 6px; }
.prose li b { color: var(--text); }
.prose code { font: 12.5px var(--mono); background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.prose .code { margin: 8px 0; }
.prose .code pre code, .prose .code pre { background: none; }
.tool-list { grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 13.5px; }
.tool-list dd { line-height: 1.6; }

/* ---------- footer and cookie choice ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; }
.site-foot-in { max-width: var(--site-max); margin: 0 auto; padding: 22px var(--gutter) 32px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-size: 13px; color: var(--text-3); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }
.foot-link { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.site-foot .foot-link { text-decoration: none; }
.site-foot .foot-link:hover { color: var(--text); text-decoration: underline; }
.layout + .site-foot { margin-top: 0; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 10px; font-size: 13px; }
.cookie-bar p { margin: 0; color: var(--text-2); }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- icons ---------- */
.ai-note { background: var(--soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.ai-note b { color: var(--text); }
.ai-note code, .iset code { font: 12px var(--mono); background: var(--soft-2); padding: 1px 5px; border-radius: 4px; }
.icon-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap: 20px; }
.iset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.iset-head { display: flex; align-items: flex-start; gap: 12px; }
.iset-head > div { flex: 1; min-width: 0; }
.iset-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.iset-desc { margin: 0; color: var(--text-2); }
.iset-styles { margin: 0; flex-wrap: wrap; border-radius: 14px; max-width: 100%; }
.iset-styles button { font-size: 12px; }
.ico-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 52px)); gap: 6px; }
.ico { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: var(--soft); }
.ico img { width: 24px; height: 24px; }
.iset-kv { font-size: 12.5px; }
.iset-use summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.iset-use .code { margin-top: 6px; }
.site-icons { display: grid; gap: 8px; }
.site-icons .ico-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.site-icons .ico { border-radius: 8px; }
.site-icons .ico img { width: 20px; height: 20px; }
.site-icons b a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .site-layout { grid-template-columns: 1fr; }
  .panel { position: static; max-height: none; overflow: visible; padding-right: 0; }
}
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 30% 0 0; z-index: 40; background: #fff; height: 100vh; top: 0; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--shadow); padding-top: 70px; }
  .sidebar.open { transform: none; }
  .btn-filters { display: inline-flex; }
  .pill-free, .tabs-label, .hide-sm { display: none; }
  .topbar-in { gap: 10px; }
  .search { max-width: none; }
  .grid { grid-template-columns: 1fr; }
  .lb-panel { inset: 0; border-radius: 0; }
  .lb-head { flex-wrap: wrap; gap: 8px; }
  .lb-head .grow { flex-basis: calc(100% - 46px); order: 1; }
  .lb-head #lbClose { order: 2; }
  .lb-head .btn { order: 3; }
  .lb-body { padding: 12px; }
  .site-head h1 { font-size: 24px; }
}
@media (max-width: 520px) {
  .logo > span:last-child { display: none; }
  .tab { padding: 6px 10px; }
  /* three tabs leave no room for the search: it moves to its own row */
  .topbar-in { flex-wrap: wrap; height: auto; min-height: 60px; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; column-gap: 6px; }
  .tabs { gap: 0; }
  .tab { padding: 6px 8px; font-size: 13px; }
  .auth-slot .btn { padding: 0 12px; }
  .topbar-in .search { order: 5; flex-basis: 100%; margin-left: 0; }
  .auth-slot { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
