:root {
  --ilx-side: 248px;
  --ilx-logo: 48px;
  --ilx-glyph: 26px;
  --ilx-top: 104px;
}
@media (max-width: 640px) { :root { --ilx-logo: 40px; --ilx-glyph: 22px; } }

.pl-hero + .ilx { padding-top: var(--kit-band-edge); }
.ilx-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-24) var(--space-80); align-items: end; margin-bottom: var(--space-56); }
.ilx-head .ef-lead { color: var(--body); }

.ilx-dir { display: grid; grid-template-columns: var(--ilx-side) minmax(0, 1fr) auto; grid-template-areas: "cats search n" "cats grid grid" "cats empty empty" "cats ask ask"; gap: var(--space-20) var(--space-40); align-items: center; }
.ilx-tools { display: contents; }
.ilx-search { grid-area: search; flex: none; max-width: 420px; width: 100%; }
.ilx-n { grid-area: n; font-size: var(--text-small); color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ilx-cats { grid-area: cats; align-self: start; position: sticky; top: var(--ilx-top); display: grid; gap: 2px; }
.ilx-cats__k { margin: 0 0 var(--space-10) var(--space-14); font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); }
.ilx-cat { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); min-height: 40px; padding: 0 var(--space-14); border-radius: var(--radius-full); background: transparent; font-size: var(--text-small); color: var(--foreground-soft); text-align: left; cursor: pointer; }
.ilx-cat i { font-style: normal; font-size: 12px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.ilx-cat:hover { background: var(--glass-hover); color: var(--foreground); }
.ilx-cat[aria-pressed="true"] { background: var(--card-raised); box-shadow: inset 0 0 0 var(--hw) var(--border-strong); color: var(--foreground); font-weight: 500; }
.ilx-cat[aria-pressed="true"] i { color: var(--foreground); }
.ilx-cat:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
html:not(.ef-js) .ilx-cats, html:not(.ef-js) .ilx-n { display: none; }

.ilx-frame { grid-area: grid; align-self: start; margin: 0; }
@media (min-width: 1001px) { .ilx-frame { --ef-frame-over: 20px; } }
.ilx-grid { gap: 0; }
.ilx-empty { grid-area: empty; padding: var(--space-48) 0; text-align: center; color: var(--muted-foreground); }
.ilx-empty a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.ilx-empty[hidden] { display: none; }

.ilx-t { display: grid; grid-template-columns: var(--ilx-logo) minmax(0, 1fr); grid-template-areas: "logo st" "name name" "cat cat" "line line"; align-items: start; align-content: start; gap: 0 var(--space-14); padding: var(--space-20); }
.ilx-t .ef-tag { grid-area: st; justify-self: end; }
.ilx-t h3 { grid-area: name; margin-top: var(--space-20); font-size: 17px; line-height: 1.3; font-weight: 500; color: var(--foreground); }
.ilx-t__c { grid-area: cat; margin-top: var(--space-2, 2px); font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
.ilx-t__l { grid-area: line; margin-top: var(--space-10); font-size: var(--text-small); line-height: 1.5; color: var(--body); }

.ilx-logo { grid-area: logo; display: grid; place-items: center; width: var(--ilx-logo); height: var(--ilx-logo); border-radius: var(--radius-1); background: #fff; box-shadow: inset 0 0 0 var(--hw) var(--border); }
.ilx-logo svg { width: var(--ilx-glyph); height: var(--ilx-glyph); fill: var(--ilx-brand, var(--foreground)); }
.ilx-logo--mono { background: var(--fill); box-shadow: none; font: 500 13px/1 var(--font-mono); letter-spacing: .02em; color: var(--foreground); }
.ilx-logo--ink { background: var(--inverse); color: var(--on-inverse); }
.ilx--ink .ilx-logo svg { fill: var(--foreground); }

.ilx-ask { grid-area: ask; display: flex; align-items: center; justify-content: space-between; gap: var(--space-16) var(--space-24); flex-wrap: wrap; margin-top: var(--space-12); padding: var(--space-20) var(--space-24); border-radius: var(--radius-2); box-shadow: inset 0 0 0 var(--hw) var(--border); }
.ilx-ask p { font-size: var(--text-body); color: var(--body); }
.ilx-ask b { font-weight: 500; color: var(--foreground); }

@media (max-width: 1100px) {
  .ilx-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ilx-head .ef-lead { max-width: 600px; }
}
@media (max-width: 1000px) {
  .ilx-dir { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "search n" "cats cats" "grid grid" "empty empty" "ask ask"; gap: var(--space-16); }
  .ilx-cats { position: static; display: flex; flex-wrap: wrap; gap: var(--space-6); }
  .ilx-cats__k { display: none; }
  .ilx-cat { min-height: 36px; box-shadow: inset 0 0 0 var(--hw) var(--border-strong); white-space: nowrap; }
  .ilx-cat i { display: none; }
}

@media (max-width: 640px) {
  .ilx-head { margin-bottom: var(--space-32); }
  .ilx-dir { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "n" "cats" "grid" "empty" "ask"; gap: var(--space-12); }
  .ilx-search { max-width: none; }
  .ilx-t { grid-template-columns: var(--ilx-logo) minmax(0, 1fr) auto; grid-template-areas: "logo name st" "logo cat st" "line line line"; gap: 2px var(--space-12); padding: var(--space-14); align-items: center; }
  .ilx-t h3 { margin-top: 0; font-size: 16px; }
  .ilx-t__c { margin-top: 0; }
  .ilx-t__l { margin-top: var(--space-8); }
  .ilx-ask { padding: var(--space-16); }
}
