/* Hook library tab (hooklib.js). Reuses .hk-item / .hk-copy from app.css so
   library hooks and the user's own look like one family. */

.hl-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.hl-niche {
  flex: 0 1 340px; min-width: 0;
  background: var(--paper); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 11px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.hl-niche:focus, .hl-search:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.hl-search { flex: 1 1 220px; min-width: 0; width: auto; }
.hl-shuffle { flex: 0 0 auto; }

.hl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
button.hl-chip {
  background: var(--paper); color: var(--text); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 550;
}
button.hl-chip-on { background: var(--violet); border-color: var(--violet); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  button.hl-chip:not(.hl-chip-on):hover { background: var(--paper); border-color: var(--line-strong); }
}

.hl-tip { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.hl-count { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; letter-spacing: .02em; }

.hl-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  margin-bottom: 8px; }
.hl-body { flex: 1; min-width: 0; }
.hl-text { font-size: 14.5px; line-height: 1.5; font-weight: 500; }
mark.hl-fill { background: var(--violet-soft); color: var(--violet-ink); border-radius: 3px;
  padding: 0 2px; font-weight: 600; }
.hl-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 6px;
  font-size: 11.5px; color: var(--muted); }
.hl-style { font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; background: var(--well); color: var(--muted); }
.hl-style-curiosity { color: var(--violet-ink); background: var(--violet-soft); }
.hl-style-mistake   { color: var(--red);   background: color-mix(in srgb, var(--red) 12%, transparent); }
.hl-style-story     { color: var(--amber); background: color-mix(in srgb, var(--amber) 14%, transparent); }
.hl-style-howto     { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.hl-style-hottake   { color: var(--red);   background: color-mix(in srgb, var(--red) 8%, transparent); }
.hl-style-proof     { color: var(--cyan);  background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.hk-copy.hk-copied  { color: var(--green); border-color: var(--green); }

.hl-more { text-align: center; margin-top: 12px; }
.hl-empty { padding: 18px 4px; line-height: 1.6; }

@media (max-width: 560px) {
  .hl-niche { flex-basis: 100%; }
  .hl-text { font-size: 14px; }
}
