.profile-matches{margin-block-start:clamp(1.5rem,3vw,2.5rem);padding-block-start:1rem;border-top:1px solid var(--rule)}
.profile-matches>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.65rem 1.618rem}
.profile-matches h2{scroll-margin-block-start:16px}
.profile-matches nav{display:flex;flex-wrap:wrap;gap:8px}
.profile-matches .button{font-size:.85rem;white-space:normal;text-align:center;overflow-wrap:anywhere;max-width:100%}
.profile-matches .outline{border-color:var(--control-rule)}
.profile-matches .match-reference,.profile-matches .match-caption,.profile-matches .terpene-match-empty{max-width:65ch;color:var(--muted);font-size:.875rem}
.profile-matches .match-reference{display:grid;gap:.15rem;padding-block:.55rem;border-block:1px solid var(--rule);margin-bottom:0;overflow-wrap:anywhere}
.match-reference strong{color:var(--ink)}
.terpene-match-empty .inline-jump{color:var(--ink);font-weight:800}
.terpene-match-list,.match-pills{list-style:none;padding:0;margin:0}
.terpene-match-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr));gap:8px;margin-top:.75rem}
.terpene-match{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.55rem .65rem;padding:.45rem .75rem .75rem;background:var(--soft);border-radius:12px;min-width:0;overflow-wrap:anywhere}
.terpene-match h3{margin:0;font-size:1rem;line-height:1.23}
.terpene-match h3 a{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;text-decoration:none}
.terpene-match h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.terpene-match h3 .icon{width:14px;height:14px;flex:none;color:var(--voice)}
.terpene-match header p{margin:0;font-size:.8rem;color:var(--muted)}
.terpene-match>.button{grid-column:2;grid-row:1;margin-top:.19rem;padding-inline:.6rem}
.match-pills{display:flex;flex-wrap:wrap;gap:.27rem .35rem;grid-column:1/-1;align-self:end}
.match-pills li{display:flex;align-items:center;gap:.3rem;padding:.2rem .48rem .2rem .23rem;border-radius:999px;background:var(--panel);border:1px solid var(--rule);font-size:.78rem;font-weight:800;min-width:0}
.match-rank{display:grid;place-items:center;flex:none;width:1.45em;height:1.45em;border-radius:50%;background:var(--key);color:var(--key-text);font-variant-numeric:tabular-nums;line-height:1}
@media(max-width:23em){.profile-matches nav{display:grid;grid-template-columns:minmax(0,1.618fr) minmax(0,1fr);inline-size:100%}.profile-matches nav .button{padding-inline:.45rem}}
@media(max-width:21em){.terpene-match{grid-template-columns:minmax(0,1fr)}.terpene-match>.button{grid-column:1;grid-row:auto;justify-self:start}}
