.fuc-topics {
    --licecon-page-gutter: max(clamp(20px, 4vw, 48px), calc((100vw - 1400px) / 2));
    --fuc-red: #ef3b45;
    --fuc-ink: #111827;
    --fuc-muted: #667085;
    --fuc-border: #dce3ea;
    --fuc-soft: #f4f7fb;
    background: #f4f7fb;
    color: var(--fuc-ink);
    font-family: "PT Sans", sans-serif;
    margin: 0 calc(50% - 50vw);
    max-width: none;
    min-height: 100vh;
    padding: 44px var(--licecon-page-gutter) 64px;
    width: 100vw;
}
.fuc-topics__inner {
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
}

body.fuc-topics-page .entry-content > .fuc-topics,
body.fuc-topics-page .wp-block-post-content > .fuc-topics,
body.fuc-topics-page .wp-block-group > .fuc-topics {
    margin-top: 0;
}

.fuc-topics__hero {
    margin-bottom: 28px;
}
.fuc-topics__eyebrow {
    color: var(--fuc-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.fuc-topics__hero h2 {
    color: #101828;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 10px;
}
.fuc-topics__hero p {
    color: var(--fuc-muted);
    font-size: 16px;
    margin: 0;
    max-width: 780px;
}

.fuc-topics__filters {
    align-items: end;
    background: #fff;
    border: 1px solid var(--fuc-border);
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .05);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 1.4fr) minmax(140px, .5fr) minmax(180px, .65fr);
    margin-bottom: 16px;
    padding: 20px;
}
.fuc-topics__filters label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fuc-topics__search {
    position: relative;
}
.fuc-topics__filters label span {
    color: #2f3a4a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.fuc-topics__filters input[type="search"],
.fuc-topics__filters select {
    background: #fff;
    border: 1px solid var(--fuc-border);
    border-radius: 12px;
    color: var(--fuc-ink);
    font-size: 15px;
    min-height: 48px;
    padding: 0 14px;
    width: 100%;
}
.fuc-topics__filters input[type="search"]:focus,
.fuc-topics__filters select:focus {
    border-color: var(--fuc-red);
    box-shadow: 0 0 0 3px rgba(239, 59, 69, .12);
    outline: none;
}
.fuc-topics__suggestions {
    background: #fff;
    border: 1px solid var(--fuc-border);
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .12);
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
}
.fuc-topics__suggestions button {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    color: var(--fuc-ink);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 12px;
    justify-content: space-between;
    min-height: 44px;
    padding: 9px 12px;
    text-align: left;
    width: 100%;
}
.fuc-topics__suggestions button:last-child {
    border-bottom: 0;
}
.fuc-topics__suggestions button:hover {
    background: #f8fafc;
}
.fuc-topics__suggestions span {
    font-weight: 700;
}
.fuc-topics__suggestions small {
    color: var(--fuc-muted);
    flex: 0 0 auto;
    font-size: 12px;
}
.fuc-topics__check {
    align-items: center;
    flex-direction: row !important;
    gap: 10px !important;
    grid-column: 1 / span 2;
}
.fuc-topics__check input {
    accent-color: var(--fuc-red);
}
.fuc-topics__check span {
    color: var(--fuc-muted) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.fuc-topics__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}
.fuc-topics__actions button,
.fuc-topics__actions a {
    align-items: center;
    border-radius: 12px;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    text-decoration: none;
}
.fuc-topics__actions button {
    background: var(--fuc-red);
    border: 1px solid var(--fuc-red);
    color: #fff;
    cursor: pointer;
}
.fuc-topics__actions a {
    background: #fff;
    border: 1px solid var(--fuc-border);
    color: #344054;
}
.fuc-topics__actions .fuc-topics__add-topic {
    background: #fff;
    border: 1px solid var(--fuc-border);
    color: #344054;
}
.fuc-topics__actions .fuc-topics__add-topic:hover,
.fuc-topics__actions a:hover {
    border-color: var(--fuc-red);
    color: var(--fuc-red);
}

.fuc-topics__notice {
    border-radius: 12px;
    font-weight: 700;
    margin: 0 0 16px;
    padding: 13px 16px;
}
.fuc-topics__notice--success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.fuc-topics__notice--error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.fuc-topic-tools-launch {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 18px;
}
.fuc-topic-tools-launch__button {
    align-items: center;
    background: #101828;
    border: 1px solid #101828;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
}
.fuc-topic-tools {
    align-content: start;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    color: var(--fuc-ink);
    display: grid;
    gap: 16px;
    grid-auto-rows: max-content;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    grid-template-rows: auto auto;
    height: fit-content;
    margin: auto;
    max-height: calc(100dvh - 64px);
    max-width: min(1120px, calc(100vw - 32px));
    min-height: 0;
    overflow: auto;
    padding: 20px;
    width: 100%;
}
.fuc-topic-tools:not([open]) {
    display: none;
}
.fuc-topic-tools::backdrop {
    background: rgba(15, 23, 42, .48);
}
.fuc-topic-tools__header {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding: 2px 2px 0;
}
.fuc-topic-tools__header span {
    color: var(--fuc-red);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.fuc-topic-tools__header h3 {
    color: #101828;
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
}
.fuc-topic-tools__close {
    align-items: center;
    background: #fff !important;
    border: 1px solid var(--fuc-border) !important;
    border-radius: 999px !important;
    color: #344054 !important;
    flex: 0 0 auto;
    font-size: 24px;
    height: 42px;
    line-height: 1;
    min-height: 42px !important;
    padding: 0 !important;
    width: 42px;
}
.fuc-topic-tools__panel {
    align-self: start;
    background: #fff;
    border: 1px solid var(--fuc-border);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .045);
    padding: 18px;
}
.fuc-topic-tools__panel--wide {
    grid-column: 1 / -1;
}
.fuc-topic-tools h4 {
    color: #101828;
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 14px;
}
.fuc-topic-tools label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.fuc-topic-tools label span {
    color: #2f3a4a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.fuc-topic-tools input[type="search"],
.fuc-topic-tools input[type="text"],
.fuc-topic-tools textarea {
    background: #fff;
    border: 1px solid var(--fuc-border);
    border-radius: 12px;
    color: var(--fuc-ink);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}
.fuc-topic-tools textarea {
    min-height: 104px;
    resize: vertical;
}
.fuc-topic-tools input:focus,
.fuc-topic-tools textarea:focus {
    border-color: var(--fuc-red);
    box-shadow: 0 0 0 3px rgba(239, 59, 69, .12);
    outline: none;
}
.fuc-topic-tools button {
    align-items: center;
    background: var(--fuc-red);
    border: 1px solid var(--fuc-red);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
}
.fuc-topic-tools__search {
    align-items: flex-end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}
.fuc-topic-tools__search label {
    margin-bottom: 0;
}
.fuc-topic-tools__matches {
    align-items: baseline;
    color: var(--fuc-muted);
    display: flex;
    gap: 8px;
    margin: 14px 0 10px;
}
.fuc-topic-tools__matches strong {
    color: var(--fuc-red);
    font-size: 20px;
}
.fuc-topic-tools__match-list,
.fuc-topic-tools__rules {
    border-top: 1px solid #edf1f5;
    display: grid;
    margin-top: 12px;
}
.fuc-topic-tools__match-list div,
.fuc-topic-rule {
    align-items: center;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 12px 0;
}
.fuc-topic-tools__match-list strong,
.fuc-topic-rule strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}
.fuc-topic-tools__match-list span,
.fuc-topic-rule span {
    color: var(--fuc-muted);
    display: block;
    font-size: 13px;
}
.fuc-topic-rule__meta {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}
.fuc-topic-rule__meta button {
    background: #fff;
    border-color: var(--fuc-border);
    color: #344054;
    min-height: 36px;
}

.fuc-topics__summary {
    align-items: baseline;
    color: var(--fuc-muted);
    display: flex;
    gap: 8px;
    margin: 10px 2px 22px;
}
.fuc-topics__summary strong {
    color: var(--fuc-red);
    font-size: 22px;
}
.fuc-topics__summary em {
    font-style: normal;
    margin-left: 8px;
}

.fuc-topics__empty {
    background: #fff;
    border: 1px solid var(--fuc-border);
    border-radius: 16px;
    color: var(--fuc-muted);
    padding: 24px;
}
.fuc-topics__results {
    display: grid;
    gap: 16px;
}
.fuc-topic-card {
    background: #fff;
    border: 1px solid var(--fuc-border);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .045);
    overflow: hidden;
}
.fuc-topic-card__head {
    align-items: flex-start;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 20px 22px;
}
.fuc-topic-card__head h3 {
    color: #101828;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
}
.fuc-topic-card__head p {
    color: var(--fuc-muted);
    margin: 0;
}
.fuc-topic-card__variants {
    color: #7b8794 !important;
    font-size: 13px;
    margin-top: 8px !important;
}
.fuc-topic-card__dot {
    color: #c4ccd6;
    display: inline-block;
    margin: 0 7px;
}
.fuc-topic-card__badges {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.fuc-topic-card__badge {
    background: #eef4ff;
    border: 1px solid #d6e4ff;
    border-radius: 999px;
    color: #2456a6;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}
.fuc-topic-card__badge--soft {
    background: #eef4ff;
    border-color: #d6e4ff;
    color: #2456a6;
}
.fuc-topic-card__badge--shared {
    background: #eef4ff;
    border-color: #d6e4ff;
    color: #2456a6;
}
.fuc-topic-card__delete {
    margin: 0;
}
.fuc-topic-card__delete button {
    background: #fff0f1;
    border: 1px solid #ffd0d4;
    border-radius: 999px;
    color: #be123c;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
}
.fuc-topic-card__delete button:hover {
    background: #ffe4e7;
}
.fuc-topic-card__refs {
    display: grid;
}
.fuc-topic-ref {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 15px 22px;
}
.fuc-topic-ref + .fuc-topic-ref {
    border-top: 1px solid #edf1f5;
}
.fuc-topic-ref strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.fuc-topic-ref span {
    color: var(--fuc-muted);
    display: block;
    font-size: 13px;
}
.fuc-topic-ref a,
.fuc-topic-ref button {
    background: #fff;
    border: 1px solid var(--fuc-border);
    border-radius: 10px;
    color: #344054;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 9px 12px;
    text-decoration: none;
}
.fuc-topic-ref a:hover,
.fuc-topic-ref button:hover {
    border-color: var(--fuc-red);
    color: var(--fuc-red);
}

.fuc-ficha-modal {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    color: var(--fuc-ink);
    margin: auto;
    max-height: calc(100dvh - 64px);
    max-width: min(980px, calc(100vw - 32px));
    overflow: hidden;
    padding: 0;
    width: 100%;
}
.fuc-ficha-modal:not([open]) {
    display: none;
}
.fuc-ficha-modal::backdrop {
    background: rgba(15, 23, 42, .48);
}
.fuc-ficha-modal__header {
    align-items: flex-start;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 22px 24px 18px;
}
.fuc-ficha-modal__header span {
    color: var(--fuc-red);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.fuc-ficha-modal__header h3 {
    color: #101828;
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}
.fuc-ficha-modal__header p {
    color: var(--fuc-muted);
    font-size: 14px;
    margin: 7px 0 0;
}
.fuc-ficha-modal__close {
    align-items: center;
    background: #fff !important;
    border: 1px solid var(--fuc-border) !important;
    border-radius: 999px !important;
    color: #344054 !important;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 24px;
    height: 42px;
    line-height: 1;
    min-height: 42px !important;
    padding: 0 !important;
    width: 42px;
}
.fuc-ficha-modal__actions {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    justify-content: flex-end;
    min-height: 62px;
    padding: 12px 24px;
}
.fuc-ficha-modal__actions a {
    align-items: center;
    background: var(--fuc-red);
    border: 1px solid var(--fuc-red);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    text-decoration: none;
}
.fuc-ficha-modal__actions span {
    color: var(--fuc-muted);
    font-size: 14px;
}
.fuc-ficha-modal__body {
    background: #fff;
    display: grid;
    gap: 18px;
    max-height: calc(100dvh - 238px);
    overflow: auto;
    padding: 22px 24px 26px;
}
.fuc-ficha-modal__section {
    border: 1px solid #edf1f5;
    border-radius: 12px;
    overflow: hidden;
}
.fuc-ficha-modal__section h4 {
    background: #101828;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    margin: 0;
    padding: 10px 14px;
}
.fuc-ficha-modal__section dl {
    margin: 0;
}
.fuc-ficha-modal__section dl div {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    padding: 12px 14px;
}
.fuc-ficha-modal__section dl div + div {
    border-top: 1px solid #edf1f5;
}
.fuc-ficha-modal__section dt {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}
.fuc-ficha-modal__section dd {
    color: #101828;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}
.fuc-topics__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 24px 0 0;
}
.fuc-topics__pagination a,
.fuc-topics__pagination span {
    align-items: center;
    background: #fff;
    border: 1px solid var(--fuc-border);
    border-radius: 10px;
    color: #344054;
    display: inline-flex;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    min-width: 38px;
    padding: 0 12px;
    text-decoration: none;
}
.fuc-topics__pagination span {
    background: var(--fuc-red);
    border-color: var(--fuc-red);
    color: #fff;
}
.fuc-topics__pagination a:hover {
    border-color: var(--fuc-red);
    color: var(--fuc-red);
}

@media (max-width: 840px) {
    .fuc-topics__filters {
        grid-template-columns: 1fr;
    }
    .fuc-topic-tools,
    .fuc-topic-tools__search {
        grid-template-columns: 1fr;
    }
    .fuc-topics__check {
        grid-column: auto;
    }
    .fuc-topics__actions {
        justify-content: flex-start;
    }
    .fuc-topic-ref {
        align-items: flex-start;
        flex-direction: column;
    }
    .fuc-ficha-modal__header,
    .fuc-ficha-modal__actions {
        padding-left: 18px;
        padding-right: 18px;
    }
    .fuc-ficha-modal__header h3 {
        font-size: 20px;
    }
    .fuc-ficha-modal__body {
        max-height: calc(100dvh - 232px);
        padding: 18px;
    }
    .fuc-ficha-modal__section dl div {
        gap: 6px;
        grid-template-columns: 1fr;
    }
}
