/* The tag index owns its controls and rows; no unstyled directory elements. */
.nexus-tags .nexus-tags__header { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:22px; }
.nexus-tags .nexus-page-title { margin:0; }
.nexus-tags__count { padding:5px 10px; color:#a8bad8; background:#1c293d; border:1px solid #304562; border-radius:20px; font-size:12px; white-space:nowrap; }
.nexus-tags__controls { padding:20px; margin-bottom:24px; background:#1b1b21; border:1px solid #32323c; border-radius:13px; }
.nexus-tags__toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.nexus-tags .nexus-sort-tabs { display:flex; flex:none; gap:4px; padding:4px; background:#131318; border:1px solid #34343f; border-radius:9px; }
.nexus-tags .nexus-sort-tabs a { display:flex; align-items:center; justify-content:center; min-height:36px; padding:8px 18px; color:#a6a6b5; border:1px solid transparent; border-radius:6px; font-size:12px; font-weight:700; text-align:center; }
.nexus-tags .nexus-sort-tabs a:hover,.nexus-tags .nexus-sort-tabs a[aria-current="page"] { color:#e7f0ff; background:#263d60; border-color:#3d649d; }
.nexus-tags .nexus-tag-search { min-width:0; width:min(100%,490px); display:flex; align-items:center; gap:10px; padding:5px 5px 5px 13px; margin:0; background:#25252d; border:1px solid #41414f; border-radius:9px; }
.nexus-tags .nexus-tag-search .nexus-icon { color:#9292a4; }
.nexus-tags .nexus-tag-search input[type="search"] { min-width:0; width:100%; height:32px; padding:4px 0; color:#f0f0f5; background:transparent; border:0; border-radius:0; font-size:12px; }
.nexus-tags .nexus-tag-search input::placeholder { color:#90909f; opacity:1; }
.nexus-tags .nexus-tag-search button { flex:none; min-height:34px; padding:7px 14px; color:#fff; background:#266bd7; border:1px solid #3e82ec; border-radius:6px; font-size:12px; font-weight:700; cursor:pointer; }
.nexus-tags .nexus-tag-search button:hover { background:#347fea; }
.nexus-tags .nexus-alphabet { display:flex; flex-wrap:wrap; gap:6px; }
.nexus-tags .nexus-alphabet a { min-width:32px; min-height:33px; display:grid; place-items:center; padding:5px 9px; color:#b1b1c1; background:#24242c; border:1px solid #383843; border-radius:6px; font-size:12px; font-weight:700; }
.nexus-tags .nexus-alphabet a:hover,.nexus-tags .nexus-alphabet a[aria-current="page"] { color:#fff; background:#285ea7; border-color:#4e8bdd; }
.nexus-tags__clear { display:inline-block; margin-top:14px; color:#a5c8ff; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.nexus-tags__clear:hover { color:#fff; }
.nexus-tags .nexus-tag-grid { display:grid; gap:0; padding:6px 20px; background:#19191e; border:1px solid #303039; border-radius:13px; }
.nexus-tags .nexus-tag-group { min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr); align-items:start; gap:16px; padding:16px 0; margin:0; }
.nexus-tags .nexus-tag-group + .nexus-tag-group { border-top:1px solid #2e2e37; }
.nexus-tags .nexus-tag-group h2 { width:38px; min-height:40px; display:grid; place-items:center; margin:0; color:#b6d2ff; background:#25344b; border:1px solid #364e72; border-radius:7px; font-size:16px; font-weight:800; }
.nexus-tags .nexus-tag-group__items { min-width:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; gap:8px; padding:0; margin:0; list-style:none; }
.nexus-tags .nexus-tag-group__items li { min-width:0; display:flex; padding:0; margin:0; }
.nexus-tags .nexus-tag-row { min-width:0; width:100%; min-height:40px; display:flex; align-items:stretch; justify-content:space-between; gap:0; color:#d2d2df; background:#2a2a34; border:1px solid #393945; border-radius:6px; font-size:12px; line-height:1.4; overflow:hidden; }
.nexus-tags .nexus-tag-row > span { min-width:0; display:flex; align-items:center; padding:9px 11px; overflow-wrap:anywhere; }
.nexus-tags .nexus-tag-row small { flex:none; min-width:40px; display:flex; align-items:center; justify-content:center; padding:9px 7px; color:#a9afbe; background:#22222b; border-left:1px solid #393945; font-size:10px; font-variant-numeric:tabular-nums; }
.nexus-tags .nexus-tag-row:hover { color:#fff; background:#2b405f; border-color:#4c74ad; }
.nexus-tags .nexus-tag-row:hover small { color:#d6e5ff; background:#25334a; border-color:#4c74ad; }
.nexus-tags .nexus-tag-grid--popular .nexus-tag-group { display:block; padding:16px 0; }
.nexus-tags .nexus-tags__pagination { margin-top:25px; padding:0; }
.nexus-tags .nexus-tags__pagination a,.nexus-tags .nexus-tags__pagination span { width:auto; height:auto; }
@media (max-width:1000px) {
 .nexus-tags .nexus-tag-group__items { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
 .nexus-tags__toolbar { align-items:stretch; flex-direction:column; gap:13px; }
 .nexus-tags .nexus-sort-tabs { width:max-content; max-width:100%; }
 .nexus-tags .nexus-tag-search { width:100%; }
 .nexus-tags .nexus-tag-group__items { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
 .nexus-tags { padding-top:25px; }
 .nexus-tags .nexus-tags__header { gap:9px; margin-bottom:18px; }
 .nexus-tags__count { font-size:10px; }
 .nexus-tags__controls { padding:14px; margin-bottom:17px; border-radius:10px; }
 .nexus-tags .nexus-alphabet { gap:5px; }
 .nexus-tags .nexus-alphabet a { min-width:29px; min-height:31px; padding:4px 8px; font-size:11px; }
 .nexus-tags .nexus-tag-grid { padding:4px 12px; border-radius:10px; }
 .nexus-tags .nexus-tag-group { grid-template-columns:26px minmax(0,1fr); gap:9px; padding:13px 0; }
 .nexus-tags .nexus-tag-group h2 { width:26px; min-height:36px; font-size:13px; border-radius:5px; }
 .nexus-tags .nexus-tag-group__items { gap:6px; }
 .nexus-tags .nexus-tag-row { min-height:36px; font-size:11px; }
 .nexus-tags .nexus-tag-row > span { padding:8px 7px; }
 .nexus-tags .nexus-tag-row small { min-width:28px; padding:8px 4px; font-size:9px; }
 .nexus-tags .nexus-tag-grid--popular .nexus-tag-group { padding:9px 0; }
}
@media (max-width:360px) {
 .nexus-tags .nexus-tag-group__items { grid-template-columns:minmax(0,1fr); }
}
