.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.cat-card { position: relative; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line2); }
.cat-card.featured { border-color: var(--gold); }
.cat-star { position: absolute; top: 10px; right: 10px; background: none; border: none; color: var(--faint); font-size: 18px; cursor: pointer; line-height: 1; transition: .15s; }
.cat-star:hover { color: var(--gold); transform: scale(1.15); }
.cat-star.on { color: var(--gold); }
.cat-name { font-weight: 700; font-size: 15px; color: var(--txt); padding-right: 26px; }
.cat-untitled { color: var(--faint); font-style: italic; font-weight: 400; }
.cat-meta { font-size: 12px; color: var(--faint); margin-top: 3px; }
.cat-note { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.cat-open { font-size: 12px; color: var(--gold); font-weight: 600; }
.cat-flag { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cat-flag.gold { background: var(--gold); color: var(--bg); }
.cat-flag.ok { background: rgba(63, 174, 130, .18); color: var(--emerald); }
.cat-flag.warn { background: rgba(224, 169, 74, .18); color: var(--amber); }
.ask-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.ask-list li { font-size: 13.5px; color: var(--muted); }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cat-chip { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.cat-chip:hover:not(.on) { color: var(--txt); border-color: var(--line2); }
.cat-chip.on { background: var(--gold); color: var(--on-primary); border-color: var(--gold); }
.cat-chip:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.cat-add-cat { background: var(--card2); border: 1px solid var(--line); color: var(--txt); border-radius: 999px; padding: 6px 12px; min-height: 32px; font: inherit; font-size: var(--fs-xs); cursor: pointer; }
.cat-add-cat:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.cat-group-h { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 18px 0 0; }
