body.muscom-ui main:has(.muscom-tags-page) { max-width: 100%; min-width: 0; margin-inline: auto; }
.muscom-tags-page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 48px; color: var(--muscom-ink, #18263b); }
.muscom-tags-page h1 { min-height: 0; margin: 18px 0 12px; font-family: inherit; font-size: clamp(28px, 3vw, 38px); font-weight: 750; line-height: 1.2; }
.muscom-tags-back { display: inline-flex; align-items: center; min-height: 40px; color: var(--muscom-muted, #526174); font-size: 13px; text-decoration: none; }
.muscom-tags-description { max-width: 740px; margin: 0 0 22px; color: var(--muscom-muted, #526174); font-size: 15px; line-height: 1.6; }
.muscom-tags-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; padding: 16px; border: 1px solid var(--muscom-line, #dbe2e9); border-radius: 14px; background: var(--muscom-soft, #f5f7fa); }
.muscom-tags-filter > div { min-width: 0; }
.muscom-tags-filter label { display: block; margin-bottom: 6px; font-size: 13px; line-height: 1.4; }
.muscom-tags-filter input { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--muscom-line, #dbe2e9); border-radius: 10px; background: #fff; color: inherit; font-size: 15px; }
.muscom-tags-actions { display: flex; gap: 8px; }
.muscom-tags-actions :is(button,a), .muscom-tags-pagination :is(a,span) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--muscom-line, #dbe2e9); border-radius: 10px; background: #fff; color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.muscom-tags-actions button { border-color: #fea500; background: #fea500; cursor: pointer; }
.muscom-tags-result { margin: 20px 0 14px; color: var(--muscom-muted, #526174); font-size: 13px; line-height: 1.5; }
.muscom-tags-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.muscom-tags-list li { min-width: 0; }
.muscom-tags-list a { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 74px; height: 100%; padding: 13px 15px; border: 1px solid var(--muscom-line, #dbe2e9); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; transition: background-color .18s, border-color .18s; }
.muscom-tag-name { font-size: 14px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.muscom-tag-count { color: var(--muscom-muted, #526174); font-size: 12px; line-height: 1.4; }
.muscom-tags-list a:hover, .muscom-tags-actions a:hover { border-color: #e4b661; background: #fff8eb; }
.muscom-tags-empty { padding: 24px; border: 1px dashed var(--muscom-line, #dbe2e9); border-radius: 12px; background: var(--muscom-soft, #f5f7fa); color: var(--muscom-muted, #526174); line-height: 1.6; }
.muscom-tags-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.muscom-tags-pagination :is(a,span) { min-width: 44px; padding: 0 12px; }
.muscom-tags-pagination [aria-current="page"] { background: #fea500; border-color: #fea500; }
.muscom-tags-page :is(a,button,input):focus-visible, .footer-tags :is(a,button):focus-visible { outline: 3px solid #2563a6; outline-offset: 3px; }
.footer-tags h3 a { color: inherit; text-decoration: none; }
.footer-tags h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-tags .muscom-all-tags-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 12px; font-size: 13px; font-weight: 600; color: #526174; text-decoration: none; }
.footer-tags .muscom-all-tags-link:hover { color: #18263b; text-decoration: underline; }
@media (max-width: 900px) { .muscom-tags-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .muscom-tags-page { padding: 16px 14px 36px; }
    .muscom-tags-filter { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
    .muscom-tags-filter input { font-size: 16px; }
    .muscom-tags-actions > * { flex: 1; }
    .muscom-tags-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .muscom-tags-list a { transition: none; } }
