:root {
    --wp-scroll-thumb: rgba(216, 179, 90, 0.55);
    --wp-scroll-thumb-hover: #d8b35a;
    --wp-scroll-track: rgba(255, 255, 255, 0.04);
}

.wp-profile-concept-root {
    scrollbar-gutter: stable;
}

.wp-profile-concept-page .wp-bg {
    background-position: center;
}

.wp-profile-section-content:has(#wp-profile-panel-statistics:not([hidden])) {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: var(--wp-profile-panel-gap) 0 0;
    overflow: visible;
}

#wp-profile-panel-statistics {
    width: 100%;
    min-height: 0;
    padding: 0;
    overflow: visible;
}

.wp-rp-stats-widget {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: clamp(570px, 61vh, 640px);
    box-sizing: border-box;
    padding: 21px clamp(28px, 2.7vw, 42px) 18px;
    color: #e3d8b8;
    background: linear-gradient(118deg, rgba(8, 10, 14, 0.88), rgba(7, 9, 13, 0.82) 54%, rgba(13, 10, 17, 0.88));
    box-shadow: inset 0 0 34px rgba(216, 169, 78, 0.025);
}

.wp-rp-stats-widget::before {
    position: absolute;
    inset: 0;
    z-index: 20;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 38px 44px;
    border-image-source: url('../images/photos/frames/photo-gallery-panel-frame.png');
    border-image-slice: 38 44;
    border-image-width: 38px 44px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-rp-stats-widget > * {
    position: relative;
    z-index: 2;
}

.wp-rp-stats-message {
    position: sticky;
    top: 8px;
    z-index: 30;
    width: min(620px, calc(100% - 40px));
    margin: 0 auto 7px;
    padding: 7px 13px;
    border: 1px solid rgba(135, 99, 52, 0.72);
    border-radius: 3px;
    color: #e3d8b8;
    font: 500 12px/1.25 'EB Garamond', Georgia, serif;
    text-align: center;
    background: rgba(6, 9, 13, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wp-rp-stats-message.is-error {
    color: #d9a19b;
    border-color: rgba(151, 62, 54, 0.8);
}

.wp-rp-stats-group {
    position: relative;
    min-width: 0;
}

.wp-rp-stats-group + .wp-rp-stats-group {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(135, 99, 52, 0.42);
}

.wp-rp-stats-group + .wp-rp-stats-group::before,
.wp-rp-stats-group + .wp-rp-stats-group::after {
    position: absolute;
    top: 4px;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(201, 148, 54, 0.76);
    content: '';
    transform: rotate(45deg);
}

.wp-rp-stats-group + .wp-rp-stats-group::before {
    left: 0;
}

.wp-rp-stats-group + .wp-rp-stats-group::after {
    right: 0;
}

.wp-rp-stats-heading {
    position: relative;
    min-height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.wp-rp-stats-heading h2 {
    width: min(430px, 56%);
    display: grid;
    grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #d8a94e;
    font: 400 clamp(16px, 1.45vw, 21px)/1 'Cinzel', Georgia, serif;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.wp-rp-stats-heading h2::before,
.wp-rp-stats-heading h2::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 169, 78, 0.72));
    content: '';
}

.wp-rp-stats-heading h2::after {
    background: linear-gradient(90deg, rgba(216, 169, 78, 0.72), transparent);
}

.wp-rp-stats-points {
    position: absolute;
    top: 50%;
    right: 0;
    min-width: 124px;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 4px 12px 3px;
    color: rgba(216, 169, 78, 0.82);
    font: 400 10px/1 'EB Garamond', Georgia, serif;
    transform: translateY(-50%);
}

.wp-rp-stats-points::before {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 13px 14px;
    border-image-source: url('../images/stats/roleplay/available-points-frame.png');
    border-image-slice: 13 14;
    border-image-width: 13px 14px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-rp-stats-points strong {
    margin-left: 4px;
    color: #e3d8b8;
    font-weight: 500;
}

.wp-rp-stats-grid {
    display: grid;
    gap: 5px 14px;
}

.wp-rp-stats-grid--paired {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wp-rp-stat-card {
    position: relative;
    min-width: 0;
    min-height: 43px;
    display: grid;
    grid-template-columns: 42px minmax(112px, 0.72fr) auto minmax(84px, 1fr) 32px;
    align-items: center;
    column-gap: 7px;
    box-sizing: border-box;
    padding: 4px 7px 4px 6px;
    border: 1px solid rgba(83, 60, 28, 0.72);
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(11, 14, 18, 0.9), rgba(8, 10, 14, 0.76));
    transition: border-color 160ms ease, background-color 160ms ease;
}

.wp-rp-stat-card:hover,
.wp-rp-stat-card:focus-within {
    z-index: 12;
    border-color: rgba(135, 99, 52, 0.92);
}

.wp-rp-stat-icon {
    width: 39px;
    height: 35px;
    display: grid;
    place-items: center;
    color: #c99436;
}

.wp-rp-stat-icon img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

.wp-rp-stat-icon i {
    color: #c99436;
    font-size: 27px;
    filter: drop-shadow(0 0 3px rgba(216, 169, 78, 0.16));
}

.wp-rp-stat-card h3,
.wp-rp-social-card h3 {
    min-width: 0;
    margin: 0;
    color: #d0a45d;
    font: 400 11px/1.08 'Cinzel', Georgia, serif;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.wp-rp-stat-score {
    min-width: 35px;
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 3px;
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
}

.wp-rp-stat-score strong {
    font-size: 14px;
    font-weight: 500;
}

.wp-rp-stat-score em {
    color: #85a958;
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
}

.wp-rp-stat-meter {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(3px, 0.36vw, 6px);
    overflow: hidden;
}

.wp-rp-stat-meter i {
    width: clamp(6px, 0.55vw, 9px);
    height: clamp(6px, 0.55vw, 9px);
    flex: 0 1 auto;
    box-sizing: border-box;
    border: 1px solid rgba(151, 112, 51, 0.62);
    background: transparent;
    transform: rotate(45deg) scale(0.76);
}

.wp-rp-stat-meter i.is-filled {
    border-color: #d8a94e;
    background: linear-gradient(135deg, #f0c66c, #b47a25);
    box-shadow: 0 0 6px rgba(216, 169, 78, 0.28);
}

.wp-rp-stat-plus,
.wp-rp-stat-minus {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    color: #e1b65e;
    background: url('../images/stats/roleplay/control-plus-frame.png') center / 100% 100% no-repeat;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease;
}

.wp-rp-stat-plus {
    padding: 0 0 2px;
    font: 400 24px/1 'Cinzel', Georgia, serif;
}

.wp-rp-stat-minus {
    padding: 0 0 3px;
    font: 400 22px/1 'Cinzel', Georgia, serif;
}

.wp-rp-stat-minus[hidden] {
    visibility: hidden;
}

.wp-rp-stat-plus:hover:not(:disabled),
.wp-rp-stat-minus:hover:not(:disabled) {
    filter: brightness(1.3) drop-shadow(0 0 5px rgba(216, 169, 78, 0.28));
    transform: translateY(-1px);
}

.wp-rp-stat-plus:disabled,
.wp-rp-stat-minus:disabled {
    opacity: 0.32;
    cursor: default;
}

.wp-rp-magic-note,
.wp-rp-physical-note {
    margin: -2px 0 5px;
    color: rgba(190, 151, 88, 0.82);
    font: 400 10px/1.15 'EB Garamond', Georgia, serif;
    text-align: center;
}

.wp-rp-stats-group--magic .wp-rp-stat-card,
.wp-rp-stats-group--physical .wp-rp-stat-card {
    grid-template-columns: 42px minmax(112px, 0.72fr) auto minmax(84px, 1fr) 64px;
}

.wp-rp-magic-controls,
.wp-rp-physical-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.wp-rp-magic-confirm,
.wp-rp-physical-confirm {
    width: 238px;
    height: 33px;
    display: block;
    margin: 5px auto -3px;
    padding: 0 12px 2px;
    border: 0;
    color: #d8a94e;
    font: 500 10px/1 'Cinzel', Georgia, serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: url('../images/stats/roleplay/distribution-confirm-frame.png') center / 100% 100% no-repeat;
    cursor: pointer;
}

.wp-rp-magic-confirm:disabled,
.wp-rp-physical-confirm:disabled {
    opacity: 0.42;
    cursor: default;
}

.wp-rp-stat-tooltip {
    position: absolute;
    right: 8px;
    top: calc(100% + 7px);
    left: 8px;
    z-index: 80;
    display: none;
    padding: 9px 11px;
    border: 1px solid rgba(135, 99, 52, 0.88);
    border-radius: 3px;
    color: rgba(227, 216, 184, 0.94);
    font: 400 11px/1.28 'EB Garamond', Georgia, serif;
    background: rgba(5, 8, 12, 0.985);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.66), inset 0 0 18px rgba(216, 169, 78, 0.025);
    pointer-events: none;
}

.wp-rp-stat-tooltip span {
    display: block;
}

.wp-rp-stat-tooltip span + span {
    margin-top: 4px;
    color: rgba(193, 155, 91, 0.86);
}

.wp-rp-stat-card:hover .wp-rp-stat-tooltip,
.wp-rp-stat-card:focus-within .wp-rp-stat-tooltip,
.wp-rp-social-card:hover .wp-rp-stat-tooltip,
.wp-rp-social-card:focus-within .wp-rp-stat-tooltip {
    display: block;
}

.wp-rp-stats-widget > *:has(.wp-rp-stat-card:hover),
.wp-rp-stats-widget > *:has(.wp-rp-stat-card:focus-within),
.wp-rp-stats-widget > *:has(.wp-rp-social-card:hover),
.wp-rp-stats-widget > *:has(.wp-rp-social-card:focus-within) {
    z-index: 30;
}

.wp-rp-social-note,
.wp-rp-stats-group--factions > p {
    margin: -2px 0 5px;
    color: rgba(190, 151, 88, 0.82);
    font: 400 10px/1.15 'EB Garamond', Georgia, serif;
    text-align: center;
}

.wp-rp-social-guide-toggle {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
    padding: 5px 13px;
    border: 1px solid rgba(83, 60, 28, 0.76);
    border-radius: 2px;
    color: #cba05a;
    font: 400 11px/1.2 'EB Garamond', Georgia, serif;
    text-decoration: none;
    background: rgba(8, 11, 15, 0.86);
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease;
}

.wp-rp-social-guide-toggle:hover,
.wp-rp-social-guide-toggle:focus-visible {
    border-color: rgba(135, 99, 52, 0.9);
    color: #e6c477;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wp-rp-social-guide-toggle i {
    flex: 0 0 auto;
    font-size: 9px;
}

.wp-rp-social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.wp-rp-social-card {
    position: relative;
    min-height: 48px;
    display: grid;
    grid-template-columns: 38px minmax(80px, 1fr) 30px 28px 30px;
    align-items: center;
    column-gap: 6px;
    padding: 4px 8px;
    border: 1px solid rgba(83, 60, 28, 0.72);
    background: rgba(8, 11, 15, 0.84);
}

.wp-rp-social-card:first-child {
    grid-template-columns: 38px minmax(80px, 1fr) 28px;
}

.wp-rp-stats-group--social[data-configured='1'] .wp-rp-social-card {
    grid-template-columns: 38px minmax(80px, 1fr) 28px;
}

.wp-rp-social-card img {
    width: 34px;
    height: 36px;
    object-fit: contain;
}

.wp-rp-social-card > strong {
    color: #e3d8b8;
    font: 500 14px/1 'EB Garamond', Georgia, serif;
    text-align: center;
}

.wp-rp-social-confirm {
    position: relative;
    width: 238px;
    height: 33px;
    display: block;
    margin: 5px auto -2px;
    padding: 0 12px 2px;
    border: 0;
    color: #d8a94e;
    font: 500 10px/1 'Cinzel', Georgia, serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: url('../images/stats/roleplay/distribution-confirm-frame.png') center / 100% 100% no-repeat;
    cursor: pointer;
}

.wp-rp-stats-group--factions {
    padding-top: 7px;
}

.wp-rp-stats-group--factions .wp-rp-stats-heading {
    min-height: 22px;
    margin-bottom: 1px;
}

.wp-rp-factions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 188px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.wp-rp-factions > span {
    min-height: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0 46px;
    border: 1px solid rgba(83, 60, 28, 0.68);
    background: rgba(8, 11, 15, 0.82);
}

.wp-rp-factions strong {
    color: #d0a45d;
    font: 400 17px/1 'Cinzel', Georgia, serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wp-rp-factions b {
    color: #e3d8b8;
    font: 500 16px/1 'EB Garamond', Georgia, serif;
}

.wp-rp-factions img {
    width: 188px;
    height: 50px;
    display: block;
    object-fit: contain;
}

@media (min-width: 981px) {
    .wp-profile-concept-main:has(#wp-profile-panel-statistics:not([hidden])) {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    .wp-profile-concept-main:has(#wp-profile-panel-statistics:not([hidden])) > .wp-character-stage {
        width: 100%;
        min-height: 0;
        flex: 1 1 auto;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        align-items: stretch;
        padding-bottom: 2px;
    }

    .wp-profile-concept-main:has(#wp-profile-panel-statistics:not([hidden])) > .wp-page-footer {
        flex: 0 0 auto;
        margin-top: 0;
    }

    .wp-profile-sections:has(#wp-profile-panel-statistics:not([hidden])) {
        height: auto;
        min-height: 610px;
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .wp-profile-section-content:has(#wp-profile-panel-statistics:not([hidden])),
    #wp-profile-panel-statistics {
        min-height: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .wp-rp-stats-widget {
        flex: 1 1 auto;
    }
}

@media (min-width: 761px) and (max-width: 980px) {
    .wp-profile-sections:has(#wp-profile-panel-statistics:not([hidden])) {
        height: auto;
        min-height: 0;
    }
}

@media (max-width: 1220px) {
    .wp-rp-stats-widget {
        padding-right: 28px;
        padding-left: 28px;
    }

    .wp-rp-stat-card {
        grid-template-columns: 38px minmax(92px, 0.65fr) auto minmax(70px, 1fr) 30px;
        column-gap: 5px;
    }

    .wp-rp-stats-group--magic .wp-rp-stat-card,
    .wp-rp-stats-group--physical .wp-rp-stat-card {
        grid-template-columns: 38px minmax(82px, 0.62fr) auto minmax(64px, 1fr) 61px;
    }

    .wp-rp-stat-card h3,
    .wp-rp-social-card h3 {
        font-size: 9.5px;
    }

    .wp-rp-social-card {
        grid-template-columns: 34px minmax(58px, 1fr) 30px 24px 30px;
        column-gap: 4px;
        padding-right: 5px;
        padding-left: 5px;
    }

    .wp-rp-social-card:first-child {
        grid-template-columns: 34px minmax(58px, 1fr) 24px;
    }
}

@media (max-width: 900px) {
    .wp-rp-stats-widget {
        min-height: 0;
        padding: 32px 28px;
    }

    .wp-rp-stats-heading {
        padding-top: 5px;
    }

    .wp-rp-stats-heading h2 {
        width: min(500px, 80%);
    }

    .wp-rp-stats-points {
        position: static;
        margin-left: 12px;
        transform: none;
    }

    .wp-rp-stats-grid--paired {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-rp-social-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-rp-social-card,
    .wp-rp-social-card:first-child {
        grid-template-columns: 40px minmax(100px, 1fr) 32px 30px 32px;
    }

    .wp-rp-social-card:first-child::after {
        grid-column: 4 / 6;
        content: '';
    }

    .wp-rp-factions {
        grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    }

    .wp-rp-factions > span {
        padding: 0 20px;
    }

    .wp-rp-factions img {
        width: 120px;
    }
}

@media (max-width: 620px) {
    .wp-rp-stats-widget {
        padding: 30px 22px;
    }

    .wp-rp-stats-widget::before {
        border-width: 28px;
        border-image-slice: 38 44;
        border-image-width: 28px;
    }

    .wp-rp-stats-heading {
        display: grid;
        justify-items: center;
        gap: 5px;
    }

    .wp-rp-stats-heading h2 {
        width: 100%;
        font-size: 14px;
    }

    .wp-rp-stats-points {
        margin: 0;
    }

    .wp-rp-stat-card {
        grid-template-columns: 36px minmax(78px, 1fr) auto 30px;
    }

    .wp-rp-stats-group--magic .wp-rp-stat-card,
    .wp-rp-stats-group--physical .wp-rp-stat-card {
        grid-template-columns: 36px minmax(78px, 1fr) auto 61px;
    }

    .wp-rp-stat-meter {
        grid-column: 2 / 5;
        margin: 3px 0 2px;
    }

    .wp-rp-factions {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-rp-factions img {
        width: 188px;
        margin: 0 auto;
    }
}

/* Condizione di vita e punizioni (assegnate dallo staff) */
.wp-rp-stat-score em.is-negative {
    color: #c8654a;
}

/* numero + malus nella stessa cella della griglia della card sociale */
.wp-rp-social-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wp-rp-social-score > strong {
    color: #e3d8b8;
    font: 500 14px/1 'EB Garamond', Georgia, serif;
    text-align: center;
}

.wp-rp-status-note {
    margin: -2px 0 7px;
    color: rgba(190, 151, 88, 0.82);
    font: 400 10px/1.2 'EB Garamond', Georgia, serif;
    text-align: center;
}

.wp-rp-status-note a {
    color: #cba05a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wp-rp-status-note a:hover,
.wp-rp-status-note a:focus-visible {
    color: #e6c477;
}

.wp-rp-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wp-rp-status-row {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    row-gap: 3px;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid rgba(83, 60, 28, 0.72);
    background: rgba(8, 11, 15, 0.84);
}

.wp-rp-status-row.has-malus {
    border-color: rgba(154, 84, 58, 0.78);
    box-shadow: inset 0 0 14px rgba(154, 84, 58, 0.14);
}

.wp-rp-status-row > strong {
    color: #d0a45d;
    font: 400 11px/1.08 'Cinzel', Georgia, serif;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.wp-rp-status-value {
    color: #e3d8b8;
    font: 500 14px/1.15 'EB Garamond', Georgia, serif;
}

.wp-rp-status-row select {
    width: 100%;
    min-height: 28px;
    box-sizing: border-box;
    padding: 3px 8px;
    border: 1px solid rgba(135, 99, 52, 0.62);
    border-radius: 2px;
    color: #e3d8b8;
    font: 500 13px/1.2 'EB Garamond', Georgia, serif;
    background: rgba(5, 8, 12, 0.92);
    cursor: pointer;
}

.wp-rp-status-row select:focus-visible {
    outline: 1px solid #d8a94e;
    outline-offset: 1px;
}

.wp-rp-status-row select option {
    color: #e3d8b8;
    background: #0a0d12;
}

.wp-rp-status-row em {
    color: #c8654a;
    font: 400 11px/1.2 'EB Garamond', Georgia, serif;
    font-style: normal;
}

.wp-rp-status-row small {
    color: rgba(190, 151, 88, 0.82);
    font: 400 10px/1.2 'EB Garamond', Georgia, serif;
}

.wp-rp-status-save {
    width: 238px;
    height: 33px;
    display: block;
    margin: 8px auto -3px;
    padding: 0 12px 2px;
    border: 0;
    color: #d8a94e;
    font: 500 10px/1 'Cinzel', Georgia, serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: url('../images/stats/roleplay/distribution-confirm-frame.png') center / 100% 100% no-repeat;
    cursor: pointer;
}

.wp-rp-status-save:disabled {
    opacity: 0.42;
    cursor: default;
}

@media (max-width: 620px) {
    .wp-rp-status-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-rp-status-save {
        width: min(238px, 100%);
    }
}

.wp-profile-concept-main {
    min-width: 0;
        grid-template-columns: minmax(0, 1fr);
}

body.wp-profile-concept-page {
        overflow-x: clip;
}

body.wp-wall-image-modal-open,
body.wp-relation-modal-open {
    overflow: hidden;
}

.wp-profile-concept-topbar {
    position: relative;
    z-index: 30000;
    isolation: isolate;
    min-height: 61px;
    flex: 0 0 61px;
    gap: 20px;
    overflow: visible;
    padding: 8px 24px 7px 14px;
}

.wp-profile-concept-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
}

.wp-profile-concept-brand > img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(216, 169, 78, 0.18));
}

.wp-profile-concept-brand > span {
    overflow: hidden;
    font-size: clamp(14px, 1.35vw, 20px);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.wp-profile-back {
    display: grid;
    width: 25px;
    height: 34px;
    flex: 0 0 25px;
    place-items: center;
    color: #d8a94e;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease, filter 180ms ease;
}

.wp-profile-back svg {
    width: 22px;
    height: 22px;
}

.wp-profile-back:hover,
.wp-profile-back:focus-visible {
    color: #f0c66d;
    filter: drop-shadow(0 0 6px rgba(216, 169, 78, 0.45));
    outline: none;
    transform: translateX(-2px);
}

.wp-profile-concept-topbar .wp-top-actions {
    position: relative;
    z-index: 31000;
    flex: 0 0 auto;
}

.wp-profile-concept-topbar .wp-top-notification-menu,
.wp-profile-concept-topbar .wp-account-menu {
    z-index: 32000;
}

.wp-character-stage {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    grid-auto-rows: auto;
    align-items: start;
    gap: 20px 16px;
    flex: 0 0 auto;
    overflow: visible;
    margin-top: -22px;
    padding: 29px 22px 8px;
}

.wp-character-widget {
    position: relative;
    isolation: isolate;
    grid-column: 1 / -1;
    width: 100%;
    height: clamp(250px, 29vh, 286px);
    max-width: none;
    min-height: 250px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.wp-character-widget.wp-panel-news {
    contain: none;
    overflow: visible;
}

.wp-profile-stats-widget.wp-panel-news::after {
    top: -29px;
    right: -14px;
    bottom: -8px;
    left: -16px;
    width: auto;
    height: auto;
    border: 48px solid transparent;
    border-image-source: url('../../home/images/frames/panel-frame.webp');
    border-image-slice: 82;
    border-image-width: 48px;
    border-image-repeat: stretch;
    background: none;
    transform: none;
    will-change: auto;
}

.wp-character-widget.wp-panel-news::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 6;
    box-sizing: border-box;
    border-style: solid;
    border-width: 48px 64px;
    border-color: transparent;
    border-image-source: url('../images/frames/profile-hero-outer-frame.png');
    border-image-slice: 48 64;
    border-image-width: 48px 64px;
    border-image-repeat: stretch;
    border-image-outset: 0;
    background: none;
    pointer-events: none;
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
    transform: none;
}

.wp-profile-sections {
        --wp-profile-panel-gap: clamp(10px, 1vw, 14px);
    position: relative;
    grid-column: 1 / -1;
    width: 100%;
    height: clamp(520px, 60vh, 590px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-self: start;
    padding: 0;
    contain: none;
    overflow: visible;
}

.wp-profile-sections:has(#wp-profile-panel-info:not([hidden])) {
    height: clamp(580px, 66vh, 650px);
}

.wp-profile-sections:has(#wp-profile-panel-biography:not([hidden])) {
    height: auto;
    min-height: 0;
}

.wp-profile-sections.is-dossier-open {
    z-index: 2147483000;
    isolation: isolate;
}

.wp-profile-sections.is-dossier-open .wp-profile-section-tabs {
    z-index: 2147483001;
    overflow: visible;
}

.wp-profile-sections.is-dossier-open .wp-profile-dossier-menu {
    z-index: 2147483002;
}

.wp-profile-sections.is-dossier-open .wp-profile-dossier-options {
    z-index: 2147483003;
}

.wp-profile-stats-widget {
    position: relative;
    z-index: 1200;
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: stretch;
    padding: 14px clamp(12px, 1.2vw, 18px) 18px;
    contain: none;
    overflow: visible;
}

.wp-profile-stats-widget > * {
    position: relative;
    z-index: 7;
}

.wp-profile-stats-widget--section {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 4px 6px 12px;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-profile-stats-widget--section::-webkit-scrollbar {
    width: 6px;
}

.wp-profile-stats-widget--section::-webkit-scrollbar-track {
    background: rgba(5, 7, 11, 0.35);
}

.wp-profile-stats-widget--section::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(135, 99, 52, 0.7);
}

.wp-profile-stats-widget--section .wp-profile-stats-grid {
    grid-template-columns: repeat(6, minmax(80px, 1fr));
    gap: 18px 12px;
}

.wp-profile-stats-widget--section .wp-profile-stat-visual {
    width: min(76px, 100%);
}

.wp-profile-stats-header {
    position: relative;
    z-index: 1210 !important;
    min-height: 35px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 4px 12px;
    padding: 0 5px 8px;
    border-bottom: 1px solid rgba(108, 72, 28, 0.48);
}

.wp-profile-stats-header h2 {
    min-width: 0;
    flex: 0 1 auto;
    margin: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(14px, 1.05vw, 17px);
    font-weight: 400;
    letter-spacing: 1.15px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(216, 169, 78, 0.14);
}

.wp-profile-stats-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(5px, 0.5vw, 8px);
    flex: 0 0 auto;
    margin-left: auto;
}

.wp-profile-stats-points {
    color: rgba(227, 216, 184, 0.72);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(8px, 0.62vw, 10px);
    line-height: 1;
    white-space: nowrap;
}

.wp-profile-stats-points strong {
    margin-left: 3px;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 1.12em;
    font-weight: 400;
}

.wp-profile-stats-save {
    min-width: 46px;
    height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(135, 99, 52, 0.76);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(58, 42, 20, 0.64), rgba(12, 13, 16, 0.94));
    box-shadow: inset 0 0 8px rgba(216, 169, 78, 0.08);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.4px;
    line-height: 1;
    cursor: pointer;
}

.wp-profile-stats-save:hover,
.wp-profile-stats-save:focus-visible {
    border-color: #b88a46;
    box-shadow: 0 0 9px rgba(216, 169, 78, 0.24), inset 0 0 8px rgba(216, 169, 78, 0.12);
    outline: none;
}

.wp-profile-stats-save:disabled {
    cursor: default;
    opacity: 0.48;
}

.wp-profile-stats-help-wrap {
    position: relative;
    z-index: 1220;
    display: inline-flex;
}

.wp-profile-stats-help {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 169, 78, 0.58);
    border-radius: 50%;
    color: rgba(216, 169, 78, 0.86);
    font-family: 'Cinzel', serif;
    font-size: 10px;
    line-height: 1;
    background: rgba(6, 8, 12, 0.86);
    cursor: help;
    transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.wp-profile-stats-help:hover,
.wp-profile-stats-help:focus-visible {
    border-color: #d8a94e;
    color: #f0c96f;
    box-shadow: 0 0 8px rgba(216, 169, 78, 0.28);
    outline: none;
}

.wp-profile-stats-tooltip {
    position: absolute;
    top: calc(100% + 9px);
    right: -5px;
    z-index: 1230;
    width: min(350px, 72vw);
    padding: 11px 13px;
    border: 1px solid rgba(135, 99, 52, 0.78);
    border-radius: 5px;
    background: #080a0f;
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.54),
        inset 0 0 18px rgba(216, 169, 78, 0.035),
        0 0 10px rgba(216, 169, 78, 0.08);
    color: #eee3c7;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15px;
    line-height: 1.42;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.wp-profile-stats-tooltip::before {
    position: absolute;
    top: -5px;
    right: 9px;
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(135, 99, 52, 0.78);
    border-left: 1px solid rgba(135, 99, 52, 0.78);
    background: #090b10;
    content: '';
    transform: rotate(45deg);
}

.wp-profile-stats-help-wrap:hover .wp-profile-stats-tooltip,
.wp-profile-stats-help-wrap:focus-within .wp-profile-stats-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.wp-profile-stats-message {
    position: absolute !important;
    top: 53px;
    right: 18px;
    left: 18px;
    z-index: 18 !important;
    padding: 7px 10px;
    border: 1px solid rgba(135, 99, 52, 0.78);
    border-radius: 4px;
    background: rgba(7, 10, 15, 0.97);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
}

.wp-profile-stats-message.is-error {
    border-color: rgba(166, 66, 56, 0.74);
    color: #e4b2aa;
}

.wp-profile-stats-message[hidden] {
    display: none;
}

.wp-profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(34px, 1fr));
    align-items: start;
    justify-items: center;
    gap: 13px 4px;
}

.wp-profile-stat {
    --stat-accent: #d8a94e;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wp-profile-stat--blue {
    --stat-accent: #5f91d2;
}

.wp-profile-stat--indigo {
    --stat-accent: #737ac9;
}

.wp-profile-stat--green {
    --stat-accent: #6ba367;
}

.wp-profile-stat--teal {
    --stat-accent: #58a692;
}

.wp-profile-stat--red {
    --stat-accent: #bf604d;
}

.wp-profile-stat--purple {
    --stat-accent: #8b62bd;
}

.wp-profile-stat--amber {
    --stat-accent: #d39b3f;
}

.wp-profile-stat--lime {
    --stat-accent: #84a84f;
}

.wp-profile-stat h3 {
    min-height: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 0 0 3px;
    color: rgba(216, 169, 78, 0.94);
    font-family: 'Cinzel', serif;
    font-size: clamp(7px, 0.57vw, 10px);
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.12;
    text-align: center;
    text-transform: uppercase;
}

.wp-profile-stat-visual {
    position: relative;
    width: min(72px, 100%);
    aspect-ratio: 72 / 164;
    overflow: hidden;
}

.wp-profile-stat-visual::after {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: url('../images/stats/stat-card-frame.png') center / 100% 100% no-repeat;
    clip-path: inset(73% 0 22% 0);
    content: '';
    pointer-events: none;
}

.wp-profile-stat-frame,
.wp-profile-stat-mask {
    position: absolute;
    pointer-events: none;
}

.wp-profile-stat-frame {
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.wp-profile-stat-mask {
    inset: 4.5% 8% 5%;
    z-index: 2;
    border-radius: 42% 42% 31% 31%;
    background:
        linear-gradient(180deg, rgba(8, 11, 16, 0.99), rgba(7, 10, 15, 0.98));
}

.wp-profile-stat-icon {
    position: absolute;
    top: 23.5%;
    left: 50%;
    z-index: 3;
    width: var(--stat-icon-size, 58%);
    height: auto;
    object-fit: contain;
    image-rendering: auto;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 0 4px rgba(216, 169, 78, 0.18));
}

.wp-profile-stat--equilibrio {
    --stat-icon-size: 43%;
}

.wp-profile-stat--vigore {
    --stat-icon-size: 60%;
}

.wp-profile-stat--difesa {
    --stat-icon-size: 62%;
}

.wp-profile-stat--forza {
    --stat-icon-size: 39%;
}

.wp-profile-stat--arcano,
.wp-profile-stat--fede,
.wp-profile-stat--percezione {
    --stat-icon-size: 58%;
}

.wp-profile-stat--intelligenza,
.wp-profile-stat--destrezza {
    --stat-icon-size: 68%;
}

.wp-profile-stat--mente {
    --stat-icon-size: 62%;
}

.wp-profile-stat--tempra {
    --stat-icon-size: 71%;
}

.wp-profile-stat--fortuna {
    --stat-icon-size: 65%;
}

.wp-profile-stat-meter {
    position: absolute;
    top: 39%;
    bottom: 29%;
    left: 50%;
    z-index: 3;
    width: 18%;
    display: flex;
    flex-direction: column-reverse;
    gap: 2.2%;
    transform: translateX(-50%);
}

.wp-profile-stat-meter i {
    min-height: 0;
    flex: 1 1 0;
    border: 1px solid rgba(216, 169, 78, 0.18);
    border-radius: 1px;
    background: rgba(216, 169, 78, 0.08);
}

.wp-profile-stat-meter i.is-filled {
    border-color: color-mix(in srgb, var(--stat-accent) 78%, #f0cc7c 22%);
    background: var(--stat-accent);
    box-shadow: 0 0 4px color-mix(in srgb, var(--stat-accent) 42%, transparent);
}

.wp-profile-stat.has-pending .wp-profile-stat-frame {
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--stat-accent) 48%, transparent));
}

.wp-profile-stat.has-pending h3 {
    color: #edc46d;
    text-shadow: 0 0 7px rgba(216, 169, 78, 0.26);
}

.wp-profile-stat-value {
    position: absolute;
    right: 9%;
    bottom: 6.5%;
    left: 9%;
    z-index: 3;
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #e3d8b8;
    font-family: 'Cinzel', serif;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 6px rgba(216, 169, 78, 0.18);
}

.wp-profile-stat-value strong {
    color: #f0e6cb;
    font-size: clamp(13px, 1.05vw, 18px);
    font-weight: 600;
    letter-spacing: 0;
}

.wp-profile-stat-value small {
    margin-left: 1px;
    color: #d8c9a6;
    font-size: clamp(8px, 0.56vw, 10px);
    font-weight: 600;
    letter-spacing: 0;
}

.wp-profile-stat-bonus {
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    color: var(--stat-accent);
    font-size: clamp(7px, 0.52vw, 9px);
    font-style: normal;
    white-space: nowrap;
    transform: translateX(-50%);
}

.wp-profile-stat-adjust {
    position: absolute;
    top: 3%;
    z-index: 6;
    width: clamp(16px, 1.2vw, 20px);
    height: clamp(16px, 1.2vw, 20px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(135, 99, 52, 0.76);
    border-radius: 50%;
    background: #080b10;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.62);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(9px, 0.72vw, 12px);
    line-height: 1;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.wp-profile-stat-adjust--minus {
    left: 2%;
    font-size: 0;
}

.wp-profile-stat-adjust--minus::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1.5px;
    border-radius: 2px;
    background: #f0c96f;
    box-shadow: 0 0 3px rgba(216, 169, 78, 0.34);
    content: '';
    transform: translate(-50%, -50%);
}

.wp-profile-stat-adjust--plus {
    right: 2%;
    font-size: 0;
}

.wp-profile-stat-adjust--plus::before,
.wp-profile-stat-adjust--plus::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1.5px;
    border-radius: 2px;
    background: #f0c96f;
    box-shadow: 0 0 3px rgba(216, 169, 78, 0.34);
    content: '';
    transform: translate(-50%, -50%);
}

.wp-profile-stat-adjust--plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.wp-profile-stat-adjust:hover,
.wp-profile-stat-adjust:focus-visible {
    border-color: #d8a94e;
    color: #f1cf7c;
    box-shadow: 0 0 8px rgba(216, 169, 78, 0.3);
    outline: none;
}

.wp-profile-stat-adjust:disabled {
    cursor: default;
    opacity: 0.34;
    box-shadow: none;
}

.wp-profile-stat-adjust[hidden] {
    display: none;
}

.wp-profile-section-tabs {
    position: relative;
    z-index: 7;
    width: 100%;
    min-height: 43px;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 4px 24px 0 20px;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.62), rgba(7, 8, 13, 0.32));
}

.wp-profile-section-tabs::before {
    position: absolute;
    top: -5px;
    right: -0.085%;
    bottom: -6px;
    left: -1.786%;
    z-index: 0;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 0 70px;
    border-image-source: url('../images/frames/profile-section-tabs-frame.png');
    border-image-slice: 0 70 fill;
    border-image-width: 0 70px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-profile-section-tabs > * {
    position: relative;
    z-index: 2;
}

.wp-profile-section-tabs button {
    position: relative;
    min-width: 0;
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 clamp(17px, 1.45vw, 24px);
    border: 0;
    background: transparent;
    color: rgba(227, 216, 184, 0.64);
    font-family: 'Cinzel', serif;
    font-size: clamp(10px, 0.82vw, 12px);
    font-weight: 400;
    letter-spacing: 0.55px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, text-shadow 180ms ease;
}

.wp-profile-section-tabs button:first-child {
    min-width: 0;
    padding-right: clamp(17px, 1.45vw, 24px);
    padding-left: clamp(17px, 1.45vw, 24px);
}

#wp-profile-tab-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: auto;
}

#wp-profile-tab-settings .wp-profile-settings-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: currentColor;
    filter: none;
}

.wp-profile-dossier-menu {
    position: relative;
    z-index: 30;
    min-width: 0;
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
}

.wp-profile-section-tabs .wp-profile-dossier-trigger {
    min-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.wp-profile-dossier-trigger svg {
    width: 10px;
    height: 7px;
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.wp-profile-dossier-trigger[aria-expanded='true'] svg {
    transform: rotate(180deg);
}

.wp-profile-dossier-options {
    position: absolute;
    top: calc(100% - 1px);
    left: 8px;
    z-index: 21000;
    width: 176px;
    overflow: hidden;
    padding: 5px;
    border: 1px solid #876334;
    border-radius: 0 0 7px 7px;
    background: #05070b;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.96), inset 0 0 0 1px rgba(216, 169, 78, 0.05), inset 0 0 18px rgba(216, 169, 78, 0.04);
    isolation: isolate;
    opacity: 1;
}

.wp-profile-dossier-options[hidden] {
    display: none !important;
}

.wp-profile-section-tabs .wp-profile-dossier-options button {
    width: 100%;
    min-width: 0;
    min-height: 31px;
    display: block;
    padding: 0 10px;
    border-bottom: 1px solid rgba(83, 60, 28, 0.42);
    border-radius: 4px;
    background: #05070b;
    color: rgba(227, 216, 184, 0.86);
    font-size: 9px;
    text-align: left;
}

.wp-profile-section-tabs .wp-profile-dossier-options button:last-child {
    border-bottom: 0;
}

.wp-profile-section-tabs .wp-profile-dossier-options button::after {
    content: none;
}

.wp-profile-section-tabs .wp-profile-dossier-options button:hover,
.wp-profile-section-tabs .wp-profile-dossier-options button:focus-visible,
.wp-profile-section-tabs .wp-profile-dossier-options button.is-active {
    background: #171109;
    color: #f0dfb4;
}

.wp-profile-section-tabs button::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d8a94e 18%, #d8a94e 82%, transparent);
    box-shadow: 0 0 7px rgba(216, 169, 78, 0.34);
    content: '';
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 180ms ease, transform 180ms ease;
}

.wp-profile-section-tabs button:hover,
.wp-profile-section-tabs button:focus-visible {
    color: #e3d8b8;
    outline: none;
}

.wp-profile-section-tabs button.is-active {
    background: linear-gradient(180deg, rgba(150, 94, 25, 0.1), rgba(201, 151, 58, 0.025) 72%, transparent);
    color: #f0dfb4;
    text-shadow: 0 0 10px rgba(225, 176, 82, 0.3);
}

.wp-profile-section-tabs button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
    animation: wp-profile-tab-pulse 2.8s ease-in-out infinite;
}

@keyframes wp-profile-tab-pulse {
    0%,
    100% {
        box-shadow: 0 0 5px rgba(216, 169, 78, 0.22);
        filter: brightness(0.92);
    }

    50% {
        box-shadow: 0 0 11px rgba(225, 176, 82, 0.48);
        filter: brightness(1.18);
    }
}

.wp-profile-section-content {
    position: relative;
    z-index: 7;
    overflow: hidden;
    min-height: 0;
    flex: 1 1 auto;
    padding: var(--wp-profile-panel-gap) 4px 14px 2px;
}

.wp-profile-section-content:has(#wp-profile-panel-info:not([hidden])) {
    overflow: visible;
}

.wp-profile-section-content:has(#wp-profile-panel-biography:not([hidden])) {
    overflow: visible;
}

.wp-profile-section-content > [role='tabpanel'] {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.wp-profile-section-content > [role='tabpanel'][hidden] {
    display: none !important;
}

.wp-profile-board-panel {
    --wp-board-top-edge: 0px;
    --wp-relations-frame-compensation: 0px;
    display: grid;
    grid-template-columns: minmax(210px, 26fr) minmax(0, 74fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    align-items: stretch;
    column-gap: 16px;
    row-gap: 0;
}

.wp-profile-side-stack {
    position: relative;
    left: 0;
    z-index: 6;
    width: 100%;
    height: 100%;
    grid-column: 1;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
    padding: 10px 4px 5px;
    transform: translateY(calc(var(--wp-board-top-edge) + var(--wp-relations-frame-compensation) - 3px));
}

.wp-profile-relations,
.wp-profile-wand {
    position: relative;
    z-index: 6;
    isolation: isolate;
    width: 100%;
    contain: none;
    overflow: visible;
}

.wp-profile-relations {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding: 18px 13px 13px;
}

.wp-profile-wand {
    min-height: 174px;
    padding: 16px 13px 13px;
}

.wp-profile-information-layout {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 30%);
    gap: 14px;
    align-items: stretch;
}

.wp-profile-information-layout[hidden] {
    display: none !important;
}

#wp-profile-panel-info {
    overflow: visible;
    padding: 0;
}

.wp-profile-information-dossier {
    position: relative;
    isolation: isolate;
    width: calc(100% + 6px);
    height: calc(100% + 3px);
    min-height: 0;
    margin: 0 -3px -3px;
    overflow: visible;
    padding: var(--wp-dossier-head-space) clamp(40px, 4.5vw, 68px) clamp(26px, 3.6vh, 40px);
    --wp-dossier-crest-width: 158px;
    --wp-dossier-crest-height: 54px;
    --wp-dossier-header-min: clamp(54px, 6.8vh, 68px);
    --wp-dossier-head-space: calc(var(--wp-dossier-crest-height) + clamp(8px, 1.1vh, 14px));
    background:
        linear-gradient(
            118deg,
            rgba(9, 9, 14, 0.82) 0%,
            rgba(12, 11, 18, 0.76) 52%,
            rgba(18, 13, 24, 0.8) 100%
        );
}

.wp-profile-information-dossier::before {
    position: absolute;
    inset: -1px;
    z-index: 4;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 120px 120px 125px;
    border-image-source: url('../images/frames/profile-information-dossier-frame-border.webp');
    border-image-slice: 120 120 125;
    border-image-width: 120px 120px 125px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-profile-information-dossier::after {
    position: absolute;
    inset: -1px;
    z-index: 5;
    background:
        url('../images/frames/profile-information-dossier-crest.webp') top center / var(--wp-dossier-crest-width) var(--wp-dossier-crest-height) no-repeat,
        url('../images/frames/profile-information-dossier-footer.webp') bottom center / auto 53px no-repeat;
    content: '';
    pointer-events: none;
}

@supports (mask-composite: exclude) {
    .wp-profile-information-dossier::before {
        mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
        mask-position: top center, 0 0;
        mask-size: var(--wp-dossier-crest-width) var(--wp-dossier-crest-height), auto;
        mask-repeat: no-repeat, no-repeat;
        mask-composite: exclude;
    }
}

.wp-profile-information-dossier-header,
.wp-profile-information-dossier-grid {
    position: relative;
    z-index: 2;
}

.wp-profile-information-dossier-header {
    min-height: var(--wp-dossier-header-min);
    display: grid;
    grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    padding: 0 clamp(12px, 2vw, 30px) clamp(11px, 1.7vh, 18px);
    text-align: center;
}

.wp-profile-information-dossier-header h2 {
    margin: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(18px, 1.7vw, 25px);
    font-weight: 500;
    letter-spacing: 1.8px;
    line-height: 1.05;
    text-transform: uppercase;
}

.wp-profile-information-dossier-header p {
    margin: 8px 0 0;
    color: rgba(227, 216, 184, 0.62);
    font-family: 'Cinzel', serif;
    font-size: clamp(8px, 0.72vw, 11px);
    letter-spacing: 1.15px;
    line-height: 1.2;
    text-transform: uppercase;
}

.wp-profile-information-title-rule {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(135, 99, 52, 0.76));
}

.wp-profile-information-title-rule:last-child {
    background: linear-gradient(90deg, rgba(135, 99, 52, 0.76), transparent);
}

.wp-profile-information-title-rule::after {
    position: absolute;
    top: 50%;
    right: -3px;
    width: 6px;
    height: 6px;
    border: 1px solid #876334;
    content: '';
    transform: translateY(-50%) rotate(45deg);
}

.wp-profile-information-title-rule:last-child::after {
    right: auto;
    left: -3px;
}

.wp-profile-information-master-divider {
    position: absolute;
    top: calc(var(--wp-dossier-head-space) + var(--wp-dossier-header-min) - 7px);
    left: 50%;
    z-index: 1;
    width: calc(100% - clamp(80px, 9vw, 136px));
    height: calc(100% - var(--wp-dossier-head-space) - var(--wp-dossier-header-min) - clamp(26px, 3.6vh, 40px) + 5px);
    display: block;
    object-fit: fill;
    pointer-events: none;
    transform: translateX(-50%);
}

.wp-profile-information-dossier-grid {
    height: calc(100% - var(--wp-dossier-header-min));
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(34px, 5vw, 72px);
}

.wp-profile-information-column {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
    padding: clamp(22px, 2.6vh, 30px) clamp(5px, 1vw, 14px) 0;
}

.wp-profile-information-column h3 {
    position: relative;
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 7px;
    padding: 0 10px 12px;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(11px, 0.95vw, 14px);
    font-weight: 500;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;
}

.wp-profile-information-column h3::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 8px;
    background: url('../images/information/decorations/information-heading-rule.png') center / 100% 100% no-repeat;
    content: '';
    pointer-events: none;
}

.wp-profile-information-column h3 img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.wp-profile-information-list.wp-profile-information-list--dossier {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
}

.wp-profile-information-list.wp-profile-information-list--dossier > div {
    position: relative;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(162px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(14px, 1.6vw, 22px);
    align-items: center;
    padding: 0 10px 8px;
    border-bottom: 0;
}

.wp-profile-information-list.wp-profile-information-list--dossier > div::after,
.wp-profile-information-wand-list > div::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 11px;
    background: url('../images/information/decorations/information-row-rule.png') center / 100% 100% no-repeat;
    content: '';
    pointer-events: none;
}

.wp-profile-information-wand-list > div::after {
    right: -8px;
    left: -8px;
}

.wp-profile-information-list.wp-profile-information-list--dossier dt {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    color: #c3923e;
    font-family: 'Cinzel', serif;
    font-size: clamp(9px, 0.78vw, 11px);
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.wp-profile-information-list.wp-profile-information-list--dossier dt img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.wp-profile-information-list.wp-profile-information-list--dossier dt .wp-profile-information-calendar-icon {
    width: 24px;
    height: 24px;
    display: block;
    color: #c3923e;
    filter: drop-shadow(0 0 3px rgba(216, 169, 78, 0.16));
}

.wp-profile-information-list.wp-profile-information-list--dossier dd {
    color: rgba(227, 216, 184, 0.82);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(12px, 1.02vw, 15px);
    line-height: 1.18;
}

.wp-profile-information-watermark {
    position: absolute;
    right: 4%;
    bottom: 5%;
    z-index: 0;
    width: clamp(108px, 11vw, 165px);
    height: auto;
    opacity: 0.48;
    filter: none;
    pointer-events: none;
}

.wp-profile-information-wand-list {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0;
    margin: clamp(12px, 2.2vh, 24px) 0 0;
}

.wp-profile-information-wand-list > div {
    position: relative;
    min-height: clamp(45px, 6.4vh, 62px);
    display: grid;
    grid-template-columns: minmax(118px, 0.75fr) minmax(0, 1.25fr);
    gap: 22px;
    align-items: center;
    padding: 6px clamp(12px, 2vw, 28px) 14px;
    border-bottom: 0;
}

.wp-profile-information-wand-list dt,
.wp-profile-information-wand-list dd {
    min-width: 0;
    margin: 0;
}

.wp-profile-information-wand-list dt {
    color: #c3923e;
    font-family: 'Cinzel', serif;
    font-size: clamp(9px, 0.78vw, 11px);
    letter-spacing: 0.38px;
    text-transform: uppercase;
}

.wp-profile-information-wand-list dd {
    color: rgba(227, 216, 184, 0.82);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(12px, 1.02vw, 15px);
    line-height: 1.18;
}

.wp-profile-information-wand-figure {
    position: absolute;
    right: -1%;
    bottom: -8%;
    z-index: 0;
    width: 90%;
    height: 62%;
    margin: 0;
    opacity: 0.54;
    transform: none;
    transform-origin: center;
    pointer-events: none;
}

.wp-profile-information-wand-figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: none;
}

.wp-profile-information-list.wp-profile-information-list--dossier > .wp-profile-information-birth-row {
    min-height: auto;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: safe center;
    column-gap: 11px;
    row-gap: 5px;
    margin-top: 3px;
    margin-bottom: 4px;
    padding-top: 5px;
}

.wp-profile-information-list.wp-profile-information-list--dossier > .wp-profile-information-birth-row > dt {
    display: contents;
}

.wp-profile-information-list.wp-profile-information-list--dossier > .wp-profile-information-birth-row > dt > :first-child {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
}

.wp-profile-information-list.wp-profile-information-list--dossier > .wp-profile-information-birth-row > dt > span {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
}

.wp-profile-birth-content {
    --zodiac-slot-width: 86px;
    --zodiac-size: 38px;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: var(--zodiac-slot-width) 1px var(--zodiac-slot-width) 1px var(--zodiac-slot-width);
    align-items: center;
    justify-content: start;
    grid-row: 2;
    grid-column: 2;
    margin: 0;
    padding: 8px 10px 9px;
    border: 1px solid rgba(83, 60, 28, 0.88);
    border-radius: 6px;
    background: rgba(5, 8, 12, 0.42);
    column-gap: 10px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.wp-profile-zodiac-slot {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--zodiac-size) auto;
    align-items: center;
    justify-items: center;
    align-content: center;
    justify-self: stretch;
    row-gap: 2px;
    text-align: center;
}

.wp-profile-birth-content > .wp-profile-zodiac-slot:first-child {
    position: static;
    left: auto;
    justify-self: stretch;
}

button.wp-profile-zodiac-slot {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.wp-profile-zodiac-medallion {
    position: relative;
    width: var(--zodiac-size);
    height: var(--zodiac-size);
    flex: 0 0 var(--zodiac-size);
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 3px rgba(216, 169, 78, 0.16));
}

.wp-profile-zodiac-glyph {
    width: 100%;
    display: block;
    align-self: center;
    text-align: center;
    color: #d8a94e;
    font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 5px rgba(216, 169, 78, 0.18);
}

.wp-profile-zodiac-display-symbol {
    width: var(--zodiac-size);
    height: var(--zodiac-size);
    display: block;
    align-self: center;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 4px rgba(216, 169, 78, 0.16));
    pointer-events: none;
    user-select: none;
}

.wp-profile-zodiac-orbit,
.wp-profile-zodiac-symbol {
    position: absolute;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.wp-profile-zodiac-orbit {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.72;
}

.wp-profile-zodiac-symbol {
    --zodiac-offset-x: 1px;
    --zodiac-offset-y: 1px;
    top: 50%;
    left: 50%;
    width: 21px;
    height: 21px;
    filter: none;
    transform: translate(calc(-50% + var(--zodiac-offset-x)), calc(-50% + var(--zodiac-offset-y))) scale(0.9);
}

.wp-profile-zodiac-symbol--aries {
    --zodiac-offset-x: 0.8px;
    --zodiac-offset-y: 3px;
}

.wp-profile-zodiac-symbol--taurus {
    --zodiac-offset-x: 1px;
    --zodiac-offset-y: 1.3px;
}

.wp-profile-zodiac-symbol--gemini {
    --zodiac-offset-x: 0.9px;
    --zodiac-offset-y: 1.3px;
}

.wp-profile-zodiac-symbol--cancer {
    --zodiac-offset-x: 0.9px;
    --zodiac-offset-y: 1.1px;
}

.wp-profile-zodiac-symbol--leo {
    --zodiac-offset-x: 0.8px;
    --zodiac-offset-y: 1.4px;
}

.wp-profile-zodiac-symbol--virgo {
    --zodiac-offset-x: 0.8px;
    --zodiac-offset-y: 2.4px;
}

.wp-profile-zodiac-symbol--libra {
    --zodiac-offset-x: 0.9px;
    --zodiac-offset-y: 0.2px;
}

.wp-profile-zodiac-symbol--scorpio {
    --zodiac-offset-x: 1.5px;
    --zodiac-offset-y: 1.8px;
}

.wp-profile-zodiac-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-family: 'EB Garamond', Georgia, serif;
    line-height: 1.05;
    text-align: center;
}

.wp-profile-zodiac-copy small {
    display: block;
    color: rgba(181, 139, 74, 0.82);
    font-size: 8.3px;
    line-height: 1;
    letter-spacing: 0.12px;
    white-space: nowrap;
}

.wp-profile-zodiac-copy strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    width: 100%;
    color: rgba(243, 234, 212, 0.95);
    font-size: 10.8px;
    font-weight: 400;
    line-height: 1.02;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: nowrap;
}

.wp-profile-birth-divider {
    width: 1px;
    height: 38px;
    min-height: 0;
    align-self: center;
    flex: 0 0 1px;
    margin: 0;
    background: rgba(135, 99, 52, 0.44);
    box-shadow: 0 0 2px rgba(216, 169, 78, 0.08);
}

.wp-profile-zodiac-slot--empty {
    border-radius: 5px !important;
    cursor: pointer;
    transition: filter 180ms ease, transform 180ms ease;
}

.wp-profile-zodiac-slot--empty:hover,
.wp-profile-zodiac-slot--empty:focus-visible {
    filter: drop-shadow(0 0 6px rgba(216, 169, 78, 0.34));
    outline: none;
    transform: translateY(-1px);
}

.wp-profile-zodiac-add {
    position: absolute;
    top: 54%;
    left: 53.4%;
    z-index: 1;
    width: 11px;
    height: 11px;
    transform: translate(-50%, -50%);
}

.wp-profile-zodiac-add::before,
.wp-profile-zodiac-add::after {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 2px;
    background: #d8a94e;
    content: '';
    transform: translate(-50%, -50%);
}

.wp-profile-zodiac-add::before {
    width: 9px;
    height: 1.5px;
}

.wp-profile-zodiac-add::after {
    width: 1.5px;
    height: 9px;
}

.wp-profile-zodiac-slot--empty .wp-profile-zodiac-copy strong {
    color: #d8a94e;
}

.wp-profile-zodiac-unset {
    margin: 0 auto;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-style: italic;
}

.wp-zodiac-modal[hidden],
.wp-zodiac-modal__suggestions[hidden],
.wp-zodiac-modal__preview[hidden],
.wp-zodiac-modal__button[hidden] {
    display: none;
}

.wp-zodiac-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(1, 4, 7, 0.78);
    backdrop-filter: blur(5px);
}

.wp-zodiac-modal__panel {
    position: relative;
    width: min(660px, 100%);
    max-height: min(760px, calc(100vh - 48px));
        display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 34px 40px 30px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(118deg, rgba(8, 10, 14, 0.98), rgba(7, 9, 13, 0.97) 54%, rgba(13, 10, 17, 0.98));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.72), inset 0 0 34px rgba(216, 169, 78, 0.025);
    color: #e3d8b8;
}

.wp-zodiac-modal__panel::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 38px 44px;
    border-image-source: url('../images/photos/frames/photo-gallery-panel-frame.png');
    border-image-slice: 38 44;
    border-image-width: 38px 44px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-zodiac-modal__panel > * {
    position: relative;
    z-index: 2;
}

.wp-zodiac-modal__close {
        position: absolute;
    top: 22px;
    right: 26px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(216, 169, 78, 0.68);
    border-radius: 50%;
    background: rgba(4, 8, 12, 0.9);
    color: #d8a94e;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.wp-zodiac-modal__title {
    margin: 0 42px 3px;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.wp-zodiac-modal__intro,
.wp-zodiac-modal__warning,
.wp-zodiac-modal__error {
    text-align: center;
}

.wp-zodiac-modal__intro {
    margin: 0 0 17px;
    color: rgba(227, 216, 184, 0.78);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
}

.wp-zodiac-modal__form,
.wp-zodiac-modal__fields {
    display: grid;
    gap: 12px;
}

.wp-zodiac-modal__form {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
    scrollbar-width: thin;
}

.wp-zodiac-modal__fields--birth {
    grid-template-columns: 0.6fr 1.2fr 1fr;
}

.wp-zodiac-modal__fields--birth-with-year {
    grid-template-columns: 0.55fr 1.1fr 0.8fr 1fr;
}

.wp-zodiac-modal__field {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: rgba(216, 169, 78, 0.88);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.wp-zodiac-modal__field input,
.wp-zodiac-modal__field select {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 8px 11px;
    border: 1px solid rgba(83, 60, 28, 0.78);
    border-radius: 5px;
    background: rgba(7, 12, 16, 0.78);
    color: rgba(243, 234, 212, 0.92);
    color-scheme: dark;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.96rem;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.wp-zodiac-modal__field input:hover,
.wp-zodiac-modal__field input:focus,
.wp-zodiac-modal__field select:hover,
.wp-zodiac-modal__field select:focus {
    border-color: #d8a94e;
    background: rgba(33, 25, 16, 0.92);
    box-shadow: inset 0 0 13px rgba(216, 169, 78, 0.08), 0 0 8px rgba(216, 169, 78, 0.12);
    outline: none;
}

.wp-zodiac-modal__school-year-note,
.wp-zodiac-modal__place-help {
    margin: -5px 0 0;
    color: rgba(216, 169, 78, 0.7);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.84rem;
    font-style: italic;
    letter-spacing: 0;
    text-align: center;
}

.wp-zodiac-modal__place-field,
.wp-zodiac-modal__place-control {
    position: relative;
}

.wp-zodiac-modal__place-control {
    display: block;
}

.wp-zodiac-modal__place-control #birthPlaceSearch {
    padding-right: 40px;
}

.wp-zodiac-modal__place-status {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 16px;
    height: 16px;
    color: #d8a94e;
    pointer-events: none;
    transform: translateY(-50%);
}

.wp-zodiac-modal__place-status[data-state="loading"] {
    border: 1px solid rgba(216, 169, 78, 0.3);
    border-top-color: #d8a94e;
    border-radius: 50%;
    animation: wp-zodiac-place-loading 650ms linear infinite;
}

.wp-zodiac-modal__place-status[data-state="selected"]::before {
    position: absolute;
    inset: -4px 0 0;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    line-height: 1;
    text-align: center;
    content: '✓';
}

@keyframes wp-zodiac-place-loading {
    to { transform: translateY(-50%) rotate(360deg); }
}

.wp-zodiac-modal__suggestions {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #69451c;
    border-radius: 5px;
    background: #080c10;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.82), inset 0 0 18px rgba(216, 169, 78, 0.035);
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
    scrollbar-width: thin;
}

.wp-zodiac-modal__suggestion {
    width: 100%;
    display: block;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid rgba(83, 60, 28, 0.42);
    background: transparent;
    color: rgba(243, 234, 212, 0.9);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.94rem;
    text-align: left;
    cursor: pointer;
}

.wp-zodiac-modal__suggestion:last-child {
    border-bottom: 0;
}

.wp-zodiac-modal__suggestion--empty {
    color: rgba(227, 216, 184, 0.6);
    cursor: default;
}

.wp-zodiac-modal__suggestion:not(.wp-zodiac-modal__suggestion--empty):hover,
.wp-zodiac-modal__suggestion:not(.wp-zodiac-modal__suggestion--empty):focus {
    background: rgba(55, 39, 20, 0.72);
    color: #f3ead4;
    outline: none;
}

.wp-zodiac-modal__place-help {
    margin: 0;
    color: rgba(227, 216, 184, 0.66);
    text-align: left;
}

.wp-zodiac-modal__preview {
    margin-top: 2px;
    padding: 13px 15px 14px;
    border: 1px solid rgba(105, 69, 28, 0.78);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(7, 12, 16, 0.94), rgba(12, 14, 17, 0.9));
    box-shadow: inset 0 0 22px rgba(216, 169, 78, 0.035), 0 0 13px rgba(0, 0, 0, 0.35);
}

.wp-zodiac-modal__preview h3 {
    margin: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.wp-zodiac-modal__preview-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 3px 0 10px;
    color: rgba(227, 216, 184, 0.68);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.84rem;
    font-style: italic;
}

.wp-zodiac-modal__preview-signs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wp-zodiac-modal__preview-sign {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 38px auto auto;
    align-items: center;
    justify-items: center;
    row-gap: 3px;
    padding: 10px 8px 11px;
    border: 1px solid rgba(83, 60, 28, 0.52);
    border-radius: 6px;
    background: rgba(4, 8, 12, 0.76);
    text-align: center;
}

.wp-zodiac-modal__preview-medallion {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #d8a94e;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(216, 169, 78, 0.16));
}

.wp-zodiac-modal__preview-medallion img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    object-position: center;
}

.wp-zodiac-modal__preview-sign small {
    max-width: 100%;
    color: rgba(181, 139, 74, 0.82);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
}

.wp-zodiac-modal__preview-sign strong {
    max-width: 100%;
    overflow: hidden;
    color: rgba(243, 234, 212, 0.95);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-zodiac-modal__preview-actions,
.wp-zodiac-modal__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.wp-zodiac-modal__actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    padding: 8px 0 2px;
    margin-top: 2px;
    background: linear-gradient(180deg, rgba(9, 11, 15, 0) 0, rgba(9, 11, 15, 0.94) 42%, rgba(9, 11, 15, 0.97) 100%);
}

.wp-zodiac-modal__warning {
    margin: 8px 0 5px;
    color: #d8a94e;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.9rem;
    font-style: italic;
}

.wp-zodiac-modal__error {
    min-height: 18px;
    margin: 4px 0 0;
    color: #d36b63;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.88rem;
}

.wp-zodiac-modal__button {
    min-width: 132px;
    padding: 8px 15px;
    border: 1px solid #69451c;
    border-radius: 5px;
    background: rgba(7, 12, 16, 0.9);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.wp-zodiac-modal__button--confirm {
    border-color: #987033;
    background: linear-gradient(180deg, rgba(50, 36, 18, 0.96), rgba(20, 15, 10, 0.96));
}

.wp-zodiac-modal__button:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.42;
}

@media (max-width: 720px) {
    .wp-profile-birth-content {
        --zodiac-slot-width: 64px;
        --zodiac-size: 34px;
        width: max-content;
        max-width: 100%;
        margin-left: 0;
        padding: 8px 8px 9px;
        column-gap: 6px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > .wp-profile-information-birth-row {
        min-height: 103px;
    }

    .wp-profile-zodiac-glyph {
        font-size: 27px;
    }

    .wp-profile-zodiac-symbol {
        width: 20px;
        height: 20px;
    }

    .wp-profile-zodiac-slot {
        row-gap: 2px;
    }

    .wp-profile-zodiac-copy {
        gap: 2px;
    }

    .wp-profile-zodiac-copy small {
        font-size: 7.2px;
    }

    .wp-profile-zodiac-copy strong {
        font-size: 9px;
    }

    .wp-profile-birth-divider {
        height: 32px;
        min-height: 0;
    }

    .wp-zodiac-modal {
        padding: 12px;
    }

    .wp-zodiac-modal__panel {
        max-height: calc(100vh - 24px);
        padding: 24px 18px 20px;
    }

    .wp-zodiac-modal__fields--birth,
    .wp-zodiac-modal__fields--birth-with-year {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .wp-zodiac-modal__preview-sign {
        row-gap: 1px;
        padding-inline: 4px;
    }
}

@media (max-height: 620px) {
    .wp-zodiac-modal__form {
        padding-right: 5px;
    }
}

@supports not selector(:has(*)) {
    .wp-profile-section-content {
        overflow: visible;
    }
}

.wp-profile-wand--information {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.wp-profile-relations.wp-panel::after,
.wp-profile-wand.wp-panel::after {
    content: none;
}

.wp-profile-wand::before {
    position: absolute;
    top: -10px;
    right: -6px;
    bottom: -5px;
    left: -6px;
    z-index: 3;
    border: 32px solid transparent;
    border-image-source: url('../../home/images/frames/notification-frame.webp');
    border-image-slice: 50;
    border-image-width: 32px;
    border-image-repeat: stretch;
    backface-visibility: hidden;
    content: '';
    pointer-events: none;
}

.wp-profile-relations::before {
    position: absolute;
    top: -10px;
    right: -6px;
    bottom: -5px;
    left: -6px;
    z-index: 3;
    box-sizing: border-box;
    border: 36px solid transparent;
    border-image-source: url('../images/frames/profile-relations-frame.png');
    border-image-slice: 36;
    border-image-width: 36px;
    border-image-repeat: stretch;
    background: none;
    content: '';
    pointer-events: none;
}

.wp-profile-relations > *,
.wp-profile-wand > * {
    position: relative;
    z-index: 4;
}

.wp-profile-relations h2,
.wp-profile-wand h2 {
    margin: 0 0 8px;
    max-width: 100%;
    padding: 0 0 8px;
    overflow: hidden;
    border-bottom: 1px solid rgba(108, 72, 28, 0.34);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(7px, 0.58vw, 9.5px);
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.15;
    text-align: center;
    text-overflow: clip;
    text-transform: uppercase;
    white-space: nowrap;
}

.wp-profile-wand-image {
    height: 52px;
    display: grid;
    overflow: hidden;
    place-items: center;
    margin: -3px 0 4px;
}

.wp-profile-wand-image img {
    width: min(100%, 185px);
    height: 70px;
    display: block;
    object-fit: contain;
    filter: grayscale(1) sepia(0.92) saturate(1.35) brightness(0.82) contrast(1.08);
    transform: translateY(-4px);
}

.wp-profile-wand-details {
    display: grid;
    gap: 2px;
    margin: 0;
}

.wp-profile-wand-details div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(58px, 0.72fr) minmax(0, 1.28fr);
    gap: 7px;
    align-items: baseline;
    padding: 2px 3px;
}

.wp-profile-wand-details dt,
.wp-profile-wand-details dd {
    min-width: 0;
    margin: 0;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 9px;
    line-height: 1.1;
}

.wp-profile-wand-details dt {
    color: #b58b4a;
}

.wp-profile-wand-details dd {
    overflow: hidden;
    color: rgba(227, 216, 184, 0.76);
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-profile-relations-list {
    min-height: 0;
    display: grid;
    flex: 1 1 auto;
    gap: 5px;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1px 2px 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-profile-relations-list::-webkit-scrollbar {
    width: 4px;
}

.wp-profile-relations-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(181, 139, 74, 0.62);
}

.wp-profile-relation {
    min-width: 0;
    border: 1px solid rgba(83, 60, 28, 0.38);
    border-radius: 6px;
    background: linear-gradient(100deg, rgba(7, 10, 13, 0.62), rgba(12, 12, 17, 0.42));
    transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.wp-profile-relation:hover {
    border-color: rgba(135, 99, 52, 0.62);
    background-color: rgba(64, 44, 19, 0.12);
    transform: translateX(1px);
}

.wp-profile-relation-link {
    min-width: 0;
    min-height: 42px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 3px 7px 3px 4px;
    color: inherit;
    text-decoration: none;
}

.wp-profile-relation-link:focus-visible {
    border-radius: 5px;
    outline: 1px solid rgba(216, 169, 78, 0.62);
    outline-offset: 1px;
}

/* Voce senza profilo (NPC): e' un bottone che apre la scheda, ma si veste come il link. */
.wp-profile-relation-link--card {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.wp-profile-relation-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    display: grid;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(216, 169, 78, 0.48);
    border-radius: 50%;
    background: #080b0d;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 12px;
}

.wp-profile-relation-avatar img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    transform: translate(-50%, -50%);
    user-select: none;
}

.wp-profile-relation-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.wp-profile-relation-copy strong,
.wp-profile-relation-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-profile-relation-copy strong {
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.05;
}

.wp-profile-relation-copy small {
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.15;
}

.wp-profile-relations-empty {
    margin: auto;
    padding: 18px 8px;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    font-style: italic;
    text-align: center;
}

.wp-profile-relations-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 7px 2px 0;
    padding-top: 7px;
    border-top: 1px solid rgba(108, 72, 28, 0.28);
    color: #b58b4a;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
    transition: color 170ms ease, text-shadow 170ms ease;
}

.wp-profile-relations-more:hover,
.wp-profile-relations-more:focus-visible {
    color: #d8a94e;
    text-shadow: 0 0 7px rgba(216, 169, 78, 0.28);
    outline: none;
}

.wp-profile-relations-header {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    margin: 0 0 8px;
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(108, 72, 28, 0.34);
}

.wp-profile-relations-header h2 {
    grid-column: 2;
    margin: 0;
    padding: 0;
    border: 0;
}

.wp-profile-relations-edit {
    width: 28px;
    height: 26px;
    grid-column: 3;
    display: grid;
    place-items: center;
    margin: -3px 0 -3px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #c38c32;
    cursor: pointer;
    transition: color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.wp-profile-relations-edit svg {
    width: 18px;
    height: 18px;
}

.wp-profile-relations-edit:hover,
.wp-profile-relations-edit:focus-visible {
    color: #edbd62;
    filter: drop-shadow(0 0 5px rgba(216, 169, 78, 0.38));
    outline: none;
    transform: translateY(-1px);
}

.wp-profile-board-panel.is-managing-relationships .wp-wall-stream {
    display: none;
}

.wp-relationship-manager[hidden] {
    display: none !important;
}

.wp-relationship-manager {
    position: relative;
    z-index: 7;
    isolation: isolate;
    min-width: 0;
    height: 100%;
    min-height: 430px;
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(25px, 3.1vw, 40px) clamp(27px, 3.4vw, 44px) clamp(24px, 3vw, 38px);
    background:
        radial-gradient(circle at 58% 4%, rgba(132, 90, 34, 0.08), transparent 37%),
        linear-gradient(118deg, rgba(6, 9, 13, 0.96), rgba(8, 10, 15, 0.95) 54%, rgba(12, 10, 16, 0.96));
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.wp-relationship-manager-frame {
    position: absolute;
    inset: -1px;
    z-index: 4;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 52px;
    border-image-source: url('../images/frames/relationship-manager-frame.png');
    border-image-slice: 52;
    border-image-width: 52px;
    border-image-repeat: stretch;
    pointer-events: none;
}

.wp-relationship-manager > *:not(.wp-relationship-manager-frame) {
    position: relative;
    z-index: 5;
}

.wp-relationship-manager-heading {
    flex: 0 0 auto;
    margin-bottom: 11px;
    text-align: center;
}

.wp-relationship-manager-heading h2 {
    margin: 0;
    color: #d9a64a;
    font-family: 'Cinzel', serif;
    font-size: clamp(16px, 1.45vw, 22px);
    font-weight: 500;
    letter-spacing: 1.5px;
    line-height: 1.15;
    text-transform: uppercase;
}

.wp-relationship-manager-heading p {
    margin: 2px 38px 0;
    color: rgba(227, 216, 184, 0.68);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    line-height: 1.2;
}

.wp-relationship-manager-heading > button {
    position: absolute;
    top: -5px;
    right: -6px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0 0 2px;
    border: 1px solid rgba(181, 128, 47, 0.62);
    border-radius: 50%;
    background: rgba(7, 9, 13, 0.64);
    color: #d6a14a;
    font-family: 'Inter', sans-serif;
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.wp-relationship-manager-heading > button:hover,
.wp-relationship-manager-heading > button:focus-visible {
    background: rgba(84, 55, 18, 0.32);
    color: #f0c66e;
    outline: none;
    transform: rotate(8deg);
}

.wp-relationship-manager-layout {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(270px, 41%) minmax(0, 59%);
    overflow: hidden;
    border: 1px solid rgba(115, 78, 31, 0.62);
    border-radius: 11px;
    background: rgba(5, 8, 12, 0.38);
}

.wp-relationship-manager-list-panel,
.wp-relationship-editor {
    min-width: 0;
    min-height: 0;
    padding: 12px 15px;
}

.wp-relationship-manager-list-panel {
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(83, 60, 28, 0.46);
}

.wp-relationship-add {
    min-height: 37px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(178, 123, 40, 0.72);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(86, 55, 15, 0.16), rgba(12, 13, 17, 0.18));
    color: #dba64b;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.wp-relationship-add span {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1;
}

.wp-relationship-add:hover,
.wp-relationship-add:focus-visible {
    border-color: #d7a44c;
    background: rgba(112, 73, 22, 0.2);
    color: #f0c46b;
    outline: none;
}

.wp-relationship-list {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 8px;
    align-content: start;
    margin-top: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-relationship-row {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 18px 43px minmax(0, 1fr) 28px 28px;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid rgba(99, 67, 28, 0.58);
    border-radius: 6px;
    background: linear-gradient(100deg, rgba(14, 16, 20, 0.84), rgba(9, 11, 15, 0.66));
    cursor: default;
    transition: border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.wp-relationship-row.is-selected {
    border-color: rgba(196, 136, 44, 0.92);
    background: linear-gradient(100deg, rgba(38, 28, 16, 0.72), rgba(13, 13, 18, 0.7));
}

.wp-relationship-row.is-dragging {
    opacity: 0.42;
}

.wp-relationship-drag {
    width: 18px;
    display: grid;
    gap: 3px;
    padding: 7px 2px;
    border: 0;
    background: transparent;
    cursor: grab;
}

.wp-relationship-drag:active {
    cursor: grabbing;
}

.wp-relationship-drag span {
    height: 1px;
    display: block;
    background: #c99034;
}

.wp-relationship-row-avatar,
.wp-relationship-person-avatar {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(202, 145, 57, 0.56);
    border-radius: 50%;
    background: #090b0e;
    color: #d9a64a;
    font-family: 'Cinzel', serif;
}

.wp-relationship-row-avatar {
    width: 43px;
    height: 43px;
}

.wp-relationship-row-avatar img,
.wp-relationship-person-avatar img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.wp-relationship-person-avatar img[src*="headonly=1"] {
    width: 150%;
    height: auto;
    object-fit: contain;
    transform: translate(-51%, -36%);
}

.wp-relationship-row-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.wp-relationship-row-copy strong,
.wp-relationship-row-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-relationship-row-copy strong {
    color: #e5d8b7;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 500;
}

.wp-relationship-row-copy small {
    color: #c99742;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    font-style: italic;
}

.wp-relationship-row-action {
    width: 28px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 5px;
    border: 0;
    background: transparent;
    color: #c89237;
    cursor: pointer;
}

.wp-relationship-row-action svg {
    width: 17px;
    height: 17px;
}

.wp-relationship-row-action:hover,
.wp-relationship-row-action:focus-visible {
    color: #efbd5d;
    outline: 1px solid rgba(197, 139, 47, 0.34);
    outline-offset: -1px;
}

.wp-relationship-row-delete:hover,
.wp-relationship-row-delete:focus-visible {
    color: #cf7868;
}

.wp-relationship-list-empty {
    margin: 24px 8px;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

.wp-relationship-order-hint {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 10px 3px 0;
    padding-top: 9px;
    border-top: 1px solid rgba(83, 60, 28, 0.4);
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    line-height: 1.25;
}

.wp-relationship-order-hint span {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(194, 139, 50, 0.7);
    border-radius: 50%;
    color: #d9a64a;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    font-style: italic;
}

.wp-relationship-editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 22px 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-relationship-editor h3 {
    margin: 0 0 3px;
    color: #d7a349;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
}

.wp-relationship-field {
    position: relative;
    display: grid;
    gap: 5px;
    color: #d3a04a;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.wp-relationship-field > span:first-child::before {
    margin-right: 7px;
    color: #c68e34;
    content: '✎';
}

.wp-relationship-note-field > span:first-child::before {
    content: '▣';
}

.wp-relationship-field em {
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.wp-relationship-field input,
.wp-relationship-field textarea {
    width: 100%;
    border: 1px solid rgba(83, 60, 28, 0.64);
    border-radius: 4px;
    background: rgba(5, 8, 12, 0.68);
    color: #e2d6b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
    outline: none;
    text-transform: none;
}

.wp-relationship-field input {
    height: 40px;
    padding: 7px 34px 7px 47px;
}

.wp-relationship-field textarea {
    min-height: 64px;
    padding: 9px 10px;
    resize: vertical;
}

.wp-relationship-note-field textarea {
    min-height: 70px;
}

.wp-relationship-field input:focus,
.wp-relationship-field textarea:focus {
    border-color: rgba(196, 136, 44, 0.9);
    box-shadow: 0 0 0 2px rgba(196, 136, 44, 0.08);
}

.wp-relationship-field small {
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.wp-relationship-person-control {
    position: relative;
    display: block;
}

.wp-relationship-person-control > svg {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 10px;
    color: #b98231;
    transform: translateY(-50%);
    pointer-events: none;
}

.wp-relationship-person-avatar {
    position: absolute;
    top: 50%;
    left: 7px;
    z-index: 2;
    width: 31px;
    height: 31px;
    transform: translateY(-50%);
}

.wp-relationship-search-results {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 20;
    max-height: 165px;
    overflow-y: auto;
    border: 1px solid rgba(120, 81, 31, 0.82);
    border-radius: 5px;
    background: #090c11;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.46);
}

.wp-relationship-search-results button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid rgba(83, 60, 28, 0.35);
    background: transparent;
    color: #dfd3b5;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.wp-relationship-search-results button:hover,
.wp-relationship-search-results button:focus-visible {
    background: rgba(111, 72, 22, 0.22);
    color: #f0c46b;
    outline: none;
}

.wp-relationship-search-results img,
.wp-relationship-search-results .wp-relationship-search-initial {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid rgba(202, 145, 57, 0.5);
    border-radius: 50%;
    background: #090b0e;
    object-fit: cover;
}

.wp-relationship-search-results .wp-relationship-search-initial {
    display: grid;
    place-items: center;
}

.wp-relationship-feedback {
    min-height: 15px;
    margin: auto 0 0;
    color: rgba(227, 216, 184, 0.62);
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    line-height: 1.3;
}

.wp-relationship-feedback.is-error {
    color: #cf7868;
}

.wp-relationship-feedback.is-success {
    color: #a8bc79;
}

.wp-relationship-editor-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr);
    gap: 8px;
}

.wp-relationship-editor-actions button {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(83, 60, 28, 0.72);
    border-radius: 4px;
    background: rgba(7, 9, 13, 0.55);
    color: #d5a047;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
}

.wp-relationship-editor-actions button[type='submit'] {
    border-color: rgba(179, 124, 40, 0.88);
    background: linear-gradient(180deg, rgba(98, 63, 18, 0.2), rgba(10, 11, 15, 0.4));
}

.wp-relationship-editor-actions button:hover,
.wp-relationship-editor-actions button:focus-visible {
    border-color: #d3a04a;
    color: #f0c46b;
    outline: none;
}

.wp-relationship-editor-actions button:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* Gestisci relazioni: Personaggio (legame in bacheca) o Familiare (NPC con ritratto) */
.wp-relationship-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-relationship-fields[hidden],
.wp-relationship-mode[hidden] {
    display: none;
}

.wp-relationship-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(83, 60, 28, 0.64);
    border-radius: 5px;
    background: rgba(5, 8, 12, 0.55);
}

.wp-relationship-mode button {
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.wp-relationship-mode button:hover,
.wp-relationship-mode button:focus-visible {
    color: #f0c46b;
    outline: none;
}

.wp-relationship-mode button.is-active {
    border-color: rgba(179, 124, 40, 0.88);
    background: linear-gradient(180deg, rgba(98, 63, 18, 0.28), rgba(10, 11, 15, 0.4));
    color: #e9b95a;
}

.wp-relationship-mode-hint {
    margin: 0;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    font-style: italic;
    line-height: 1.35;
}

.wp-relationship-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.wp-relationship-field--plain input,
.wp-relationship-field select {
    height: 40px;
    padding: 7px 10px;
}

.wp-relationship-field select {
    width: 100%;
    border: 1px solid rgba(83, 60, 28, 0.64);
    border-radius: 4px;
    background: rgba(5, 8, 12, 0.68);
    color: #e2d6b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    outline: none;
    text-transform: none;
    cursor: pointer;
}

.wp-relationship-field select:focus {
    border-color: rgba(196, 136, 44, 0.9);
    box-shadow: 0 0 0 2px rgba(196, 136, 44, 0.08);
}

.wp-relationship-field select option {
    background: #0b0e13;
    color: #e2d6b8;
}

.wp-relationship-photo-field > span:first-child::before {
    content: '◉';
}

/* Editor del ritratto: cerchio di anteprima (trascinabile) + scelta file, zoom e "Centra". */
.wp-relationship-photo-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Il cerchio resta fisso; gli strumenti scendono sotto quando la colonna del form e' stretta (manager a due colonne, mobile). */
.wp-relationship-photo-editor .wp-relationship-photo-stage {
    flex: 0 0 96px;
}

.wp-relationship-photo-stage {
    position: relative;
    width: 96px;
    height: 96px;
    display: grid;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(216, 169, 78, 0.48);
    border-radius: 50%;
    background: #080b0d;
    color: #d8a94e;
    box-shadow: 0 0 0 3px rgba(5, 8, 13, 0.96), 0 0 0 4px rgba(216, 169, 78, 0.22);
    font-family: 'Cinzel', serif;
    font-size: 32px;
    line-height: 1;
}

.wp-relationship-photo-stage img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    transform: translate(-50%, -50%);
    user-select: none;
    pointer-events: none;
}

.wp-relationship-photo-stage img[hidden],
.wp-relationship-photo-initial[hidden] {
    display: none;
}

.wp-relationship-photo-stage.is-repositionable-media {
    cursor: grab;
    touch-action: none;
    user-select: none;
    box-shadow: 0 0 0 3px rgba(5, 8, 13, 0.96), 0 0 0 4px rgba(216, 169, 78, 0.6), 0 0 14px rgba(216, 169, 78, 0.16);
}

.wp-relationship-photo-stage.is-repositionable-media.is-repositioning {
    cursor: grabbing;
}

.wp-relationship-photo-tools {
    flex: 1 1 150px;
    min-width: 0;
    display: grid;
    gap: 7px;
}

.wp-relationship-photo-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px dashed rgba(120, 81, 31, 0.7);
    border-radius: 4px;
    background: rgba(5, 8, 12, 0.5);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.wp-relationship-photo-control:hover,
.wp-relationship-photo-control:focus-within {
    border-color: rgba(196, 136, 44, 0.9);
    background: rgba(111, 72, 22, 0.14);
}

.wp-relationship-photo-zoom {
    display: grid;
    gap: 3px;
}

.wp-relationship-photo-zoom > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wp-relationship-photo-zoom output {
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.wp-relationship-photo-zoom input[type='range'] {
    width: 100%;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: #d8a94e;
    cursor: pointer;
}

.wp-relationship-photo-zoom input[type='range']:disabled {
    cursor: not-allowed;
    opacity: 0.36;
}

.wp-relationship-photo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-relationship-photo-actions button {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(216, 169, 78, 0.48);
    border-radius: 5px;
    background: rgba(74, 51, 20, 0.16);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
}

.wp-relationship-photo-actions button:hover:not(:disabled),
.wp-relationship-photo-actions button:focus-visible {
    border-color: #d8a94e;
    background: rgba(116, 75, 24, 0.26);
    outline: none;
}

.wp-relationship-photo-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.36;
}

.wp-relationship-photo-actions small {
    min-width: 0;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

.wp-relationship-photo-name {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: rgba(227, 216, 184, 0.72);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.wp-relationship-field input[type='file'] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.wp-relationship-row--family {
    border-color: rgba(152, 108, 44, 0.5);
}

.wp-relationship-drag--static {
    cursor: default;
}

@media (min-width: 981px) {
    .wp-profile-sections:has(.wp-profile-board-panel.is-managing-relationships) {
        height: auto;
        min-height: 620px;
    }

    .wp-profile-section-content:has(.wp-profile-board-panel.is-managing-relationships) {
        min-height: 580px;
        flex: 0 0 auto;
        overflow: visible;
    }

    .wp-profile-board-panel.is-managing-relationships {
        height: auto;
        min-height: 566px;
    }

    .wp-profile-board-panel.is-managing-relationships .wp-relationship-manager {
        height: auto;
        min-height: 566px;
        overflow: visible;
    }

    .wp-profile-board-panel.is-managing-relationships .wp-relationship-manager-layout {
        min-height: 445px;
        overflow: visible;
    }

    .wp-profile-board-panel.is-managing-relationships .wp-relationship-editor {
        overflow: visible;
    }
}

@media (max-width: 1180px) {
    .wp-relationship-manager {
        padding-right: 31px;
        padding-left: 31px;
    }

    .wp-relationship-manager-layout {
        grid-template-columns: minmax(240px, 43%) minmax(0, 57%);
    }

    .wp-relationship-manager-list-panel,
    .wp-relationship-editor {
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (max-width: 980px) {
    body.wp-relationship-manager-open {
        overflow: hidden !important;
    }

    .wp-relationship-manager {
        position: fixed;
        top: 12px;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 1200;
        width: auto;
        height: auto;
        min-height: 0;
        margin: 0;
        overflow: hidden;
    }
}

@media (max-width: 680px) {
    body.wp-relationship-manager-open {
        overflow: hidden !important;
    }

    .wp-relationship-manager {
        position: fixed;
        top: 8px;
        right: 8px;
        bottom: 8px;
        left: 8px;
        z-index: 1200;
        width: auto;
        height: auto;
        min-height: 0;
        padding: 30px 24px 28px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .wp-relationship-manager-layout {
        grid-template-columns: minmax(0, 1fr);
        flex: 0 0 auto;
        overflow: hidden;
    }

    .wp-relationship-manager-list-panel {
        min-height: 270px;
        max-height: 360px;
        border-right: 0;
        border-bottom: 1px solid rgba(83, 60, 28, 0.46);
    }

    .wp-relationship-editor {
        min-height: 430px;
        overflow: hidden;
    }

    .wp-relationship-manager-heading > button {
        top: -10px;
        right: -8px;
    }
}

@media (max-width: 430px) {
    .wp-relationship-manager {
        padding-right: 18px;
        padding-left: 18px;
    }

    .wp-relationship-row {
        grid-template-columns: 15px 39px minmax(0, 1fr) 26px 26px;
        gap: 5px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .wp-relationship-row-avatar {
        width: 39px;
        height: 39px;
    }

    .wp-relationship-editor-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wp-profile-detail-panel {
    overflow: hidden;
    padding: 0 3px 3px;
}

.wp-profile-detail-card {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px clamp(16px, 2.2vw, 30px);
    border: 1px solid rgba(83, 60, 28, 0.52);
    border-radius: 8px;
    background: linear-gradient(118deg, rgba(8, 10, 14, 0.62), rgba(11, 10, 16, 0.54) 55%, rgba(16, 12, 21, 0.58));
    box-shadow: inset 0 0 24px rgba(216, 169, 78, 0.018);
}

.wp-profile-detail-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 3px 10px;
    border-bottom: 1px solid rgba(108, 72, 28, 0.36);
}

.wp-profile-detail-card > header > span {
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-style: italic;
}

.wp-profile-detail-card h2 {
    margin: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.wp-profile-information-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 0;
}

.wp-profile-information-list > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: baseline;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(227, 216, 184, 0.08);
}

.wp-profile-information-list > .wp-profile-information-wide {
    grid-column: 1 / -1;
}

.wp-profile-information-list dt,
.wp-profile-information-list dd {
    min-width: 0;
    margin: 0;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(12px, 0.92vw, 14px);
    line-height: 1.3;
}

.wp-profile-information-list dt {
    color: #b58b4a;
}

.wp-profile-information-list dd {
    overflow-wrap: anywhere;
    color: #e3d8b8;
}

.wp-profile-biography-copy {
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 8px 2px 3px;
    color: rgba(227, 216, 184, 0.82);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.58;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-profile-biography-copy::-webkit-scrollbar {
    width: 5px;
}

.wp-profile-biography-copy::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(181, 139, 74, 0.62);
}

.wp-profile-story-panel {
    height: auto;
    overflow: visible;
    padding: 0;
}

.wp-profile-story {
    position: relative;
    width: calc(100% + 6px);
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    margin: 0 -3px;
    overflow: visible;
    padding: 0;
    background: none;
}

.wp-profile-story-scroll {
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0 0 5px;
}

.wp-profile-story-biography {
    --story-heading-left: calc(20px - clamp(32px, 4vw, 58px));
    --story-copy-left: calc(86px - clamp(32px, 4vw, 58px));
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    min-height: 250px;
    margin: 0 0 14px;
    padding: 29px clamp(32px, 4vw, 58px) 30px;
    background: linear-gradient(118deg, rgba(6, 8, 12, 0.9), rgba(8, 9, 14, 0.84) 54%, rgba(12, 9, 16, 0.88));
}

.wp-profile-story-biography::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    border: 44px solid transparent;
    border-image-source: url('../images/story/frames/story-widget-frame.webp');
    border-image-slice: 58;
    border-image-width: 44px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-profile-story-heading {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: -8px 0 10px var(--story-heading-left, -8px);
    color: #d8a94e;
}

.wp-profile-story-heading-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
}

.wp-profile-story-heading-medallion {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.wp-profile-story-heading-symbol {
    position: relative;
    z-index: 1;
    width: 27px;
    height: 27px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(216, 169, 78, 0.16));
}

.wp-profile-story-heading-symbol--book {
    width: 38px;
    height: 38px;
}

.wp-profile-story-heading-symbol--character {
    width: 34px;
    height: 34px;
}

.wp-profile-story-heading-label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.wp-profile-story-heading-divider {
    width: 107px;
    max-width: 100%;
    height: 9px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.wp-profile-story-heading h2,
.wp-profile-story-heading h3 {
    margin: 0;
    color: inherit;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 0.75px;
    line-height: 1.05;
    text-transform: uppercase;
}

.wp-profile-story-heading h2 {
    font-size: clamp(15px, 1.18vw, 18px);
}

.wp-profile-story-heading h3 {
    font-size: clamp(12px, 0.98vw, 15px);
}

.wp-profile-story-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    overflow-wrap: anywhere;
    color: rgba(227, 216, 184, 0.86);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(12px, 0.94vw, 15px);
    font-style: italic;
    line-height: 1.48;
}

.wp-profile-story-biography > .wp-profile-story-copy,
.wp-profile-story-card > .wp-profile-story-copy {
    margin-left: var(--story-copy-left, 58px);
}

.wp-profile-story-empty {
    position: relative;
    z-index: 2;
    margin: 7px 0 0 var(--story-copy-left, 58px);
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-style: italic;
}

.wp-profile-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    width: 100%;
    margin: 0;
}

.wp-profile-story-card {
    --story-heading-left: -8px;
    --story-copy-left: 58px;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    min-width: 0;
    min-height: 152px;
    padding: 18px 20px;
    background: rgba(5, 8, 12, 0.58);
}

.wp-profile-story-card::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    border: 32px solid transparent;
    border-image-source: url('../images/story/frames/story-widget-frame.webp');
    border-image-slice: 58;
    border-image-width: 32px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-profile-story-card--private {
    background: rgba(8, 7, 12, 0.64);
}

.wp-profile-story-card small {
    position: relative;
    z-index: 2;
    display: block;
    margin: 8px 0 0 var(--story-copy-left, 58px);
    color: rgba(181, 139, 74, 0.92);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    font-style: italic;
    line-height: 1.28;
}

.wp-profile-photos-panel {
    min-height: 0;
}

.wp-profile-photos-panel:not([hidden]) {
    height: 100%;
    display: flex;
}

.wp-profile-official-bacheca {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: linear-gradient(118deg, rgba(8, 10, 14, 0.8), rgba(11, 10, 16, 0.74) 55%, rgba(16, 12, 21, 0.78));
    box-shadow: inset 0 0 24px rgba(216, 169, 78, 0.025);
}

.wp-profile-official-bacheca::before {
    position: absolute;
    inset: 0;
    z-index: 8;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 38px 44px;
    border-image-source: url('../images/photos/frames/photo-gallery-panel-frame.png');
    border-image-slice: 38 44;
    border-image-width: 38px 44px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-profile-official-bacheca > .wp-bacheca {
    --bacheca-accent: #d8a94e;
    --bacheca-card-bg: rgba(7, 9, 13, 0.94);
    --bacheca-card-border: #533c1c;
    --bacheca-text: #e3d8b8;
    --bacheca-muted: #9f9073;
    --bacheca-accent-ink: #05070b;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 14px 14px 18px;
    border-radius: 7px;
    background-color: transparent;
}

.wp-profile-official-bacheca > .wp-bacheca--photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 13px 17px 14px;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-head {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    flex: 0 0 auto;
    min-height: 60px;
    gap: 10px;
    margin: -4px 7px 0;
    padding: 0;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-head::after {
    content: none;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-heading-symbol {
    width: 27px;
    height: 24px;
    filter: none;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-heading-label {
    gap: 5px;
}

.wp-bacheca--photo-gallery .wp-bacheca__title {
    margin: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(18px, 1.7vw, 25px);
    font-weight: 500;
    letter-spacing: 1.8px;
    line-height: 1.05;
    text-align: left;
    text-transform: uppercase;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-heading-divider {
    width: clamp(180px, 27vw, 290px);
    max-width: 100%;
    height: 9px;
    object-fit: fill;
    object-position: left center;
}

.wp-photo-gallery-count {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 7px;
    margin-left: 0;
    padding-right: 5px;
    color: rgba(227, 216, 184, 0.82);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    white-space: nowrap;
}

.wp-photo-gallery-count i {
    color: #d8a94e;
}

.wp-bacheca--photo-gallery .wp-bacheca__themebtn {
    display: none;
}

.wp-photo-gallery-filters {
    min-height: 34px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: clamp(22px, 4vw, 54px);
    margin: 0 7px 7px 73px;
}

.wp-photo-gallery-filters button {
    min-width: 104px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: rgba(227, 216, 184, 0.8);
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease, filter 150ms ease;
}

.wp-photo-gallery-filters button:hover,
.wp-photo-gallery-filters button:focus-visible,
.wp-photo-gallery-filters button.is-active {
    border-color: rgba(216, 169, 78, 0.82);
    background: rgba(216, 169, 78, 0.07);
    color: #e0b257;
    filter: drop-shadow(0 0 5px rgba(216, 169, 78, 0.15));
    outline: none;
}

.wp-photo-gallery-filters img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.wp-photo-gallery-filters button:first-child img {
    width: 13px;
    height: 13px;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer {
    flex: 0 0 auto;
    margin: 0 7px 10px;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__card {
    position: relative;
    isolation: isolate;
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px clamp(30px, 4vw, 54px);
    border: 0;
    border-radius: 0;
    background: rgba(5, 7, 10, 0.68);
    box-shadow: none;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__card::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 0 90px;
    border-image-source: url('../images/photos/frames/photo-memory-composer-frame.png');
    border-image-slice: 0 90 fill;
    border-image-width: 0 90px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__fake,
.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts {
    position: relative;
    z-index: 1;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__fake {
    min-width: 0;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__avatar {
    width: 45px;
    height: 45px;
    background-position: center;
    background-size: cover;
    border-color: rgba(135, 99, 52, 0.82);
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__avatar[style*="figure="] {
    background-size: 150% auto;
    background-position: 53.5% 26.5%;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__pill {
    min-width: 0;
    border-color: rgba(83, 60, 28, 0.76);
    background: rgba(7, 9, 13, 0.64);
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts {
    width: auto;
    display: flex;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(83, 60, 28, 0.82);
    border-radius: 50%;
    background: rgba(5, 7, 10, 0.62);
    color: #d8a94e;
    font-size: 0;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button:hover,
.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button:focus-visible {
    border-color: rgba(216, 169, 78, 0.78);
    background: rgba(216, 169, 78, 0.06);
    outline: none;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button i {
    color: inherit;
    font-size: 17px;
}

.wp-bacheca--photo-gallery #bachecaShortcutBond {
    display: none;
}

.wp-bacheca--photo-gallery .wp-bacheca__grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: start;
    align-content: start;
    flex: 1 1 auto;
    gap: 7px;
    margin: 0 7px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 8px 12px 0;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
    scrollbar-width: thin;
}

.wp-bacheca--photo-gallery .wp-bacheca__grid::-webkit-scrollbar {
    width: 7px;
}

.wp-bacheca--photo-gallery .wp-bacheca__grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(4, 5, 8, 0.72);
}

.wp-bacheca--photo-gallery .wp-bacheca__grid::-webkit-scrollbar-thumb {
    border: 1px solid rgba(5, 7, 11, 0.9);
    border-radius: 999px;
    background: linear-gradient(#b88a42, #69451c);
}

.wp-bacheca--photo-gallery .wp-bacheca-tile {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    aspect-ratio: 10 / 11;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgba(4, 6, 9, 0.82);
}

.wp-bacheca--photo-gallery .wp-bacheca-tile::before {
    content: none;
}

.wp-bacheca--photo-gallery .wp-bacheca-tile::after {
    z-index: 3;
}

.wp-bacheca--photo-gallery .wp-bacheca-tile__img {
    position: absolute;
    inset: 5px;
    z-index: 1;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
}

.wp-bacheca--photo-gallery .wp-bacheca-tile__frame {
    position: absolute;
    inset: 0;
    z-index: 4;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: block;
    border: 24px solid transparent;
    border-image-source: url('../images/photos/frames/photo-gallery-item-frame.png');
    border-image-slice: 24;
    border-image-width: 24px;
    border-image-repeat: stretch;
    image-rendering: auto;
    pointer-events: none;
}

.wp-bacheca--photo-gallery .wp-bacheca-tile__badge,
.wp-bacheca--photo-gallery .wp-bacheca-tile__pin,
.wp-bacheca--photo-gallery .wp-bacheca-tile__tools {
    z-index: 5;
}

@media (max-width: 1040px) {
    .wp-bacheca--photo-gallery .wp-photo-gallery-filters {
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .wp-profile-official-bacheca > .wp-bacheca--photo-gallery {
        padding: 11px 10px 12px;
    }

    .wp-photo-gallery-filters {
        justify-content: space-between;
        gap: 6px;
        margin-left: 0;
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-head {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        min-height: 52px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca__title {
        font-size: 17px;
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-heading-divider {
        width: min(190px, 100%);
    }

    .wp-photo-gallery-filters button {
        min-width: 0;
        flex: 1 1 0;
        padding: 0 8px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__card {
        min-height: 72px;
        padding-right: 30px;
        padding-left: 30px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wp-profile-official-bacheca .wp-bacheca__title,
.wp-profile-official-bacheca .wp-bacheca-create__title {
    color: var(--bacheca-accent);
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

.wp-profile-official-bacheca .wp-bacheca-composer__card {
    border-color: var(--bacheca-card-border);
    background: var(--bacheca-card-bg);
    box-shadow: inset 0 0 16px rgba(216, 169, 78, 0.025);
}

body.wp-profile-concept-page .wp-bacheca-layer {
    --bacheca-accent: #d8a94e;
    --bacheca-card-bg: #090b10;
    --bacheca-card-border: #69451c;
    --bacheca-text: #e3d8b8;
    --bacheca-muted: #9f9073;
    --bacheca-accent-ink: #05070b;
    z-index: 25000 !important;
}

body.wp-profile-concept-page .wp-bacheca-layer::before {
    background: rgba(0, 2, 5, 0.82);
    backdrop-filter: blur(3px);
}

body.wp-profile-concept-page .wp-bacheca-modal__dialog,
body.wp-profile-concept-page .wp-bacheca-create__dialog,
body.wp-profile-concept-page .wp-bacheca-confirm__card {
    border-color: var(--bacheca-card-border);
    background: var(--bacheca-card-bg);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.82), 0 0 20px rgba(216, 169, 78, 0.08);
}

body.wp-profile-concept-page .wp-bacheca-create {
    z-index: 25010 !important;
}

body.wp-profile-concept-page .wp-bacheca-confirm {
    z-index: 25020 !important;
}

.wp-bfilter-vivida {
    filter: contrast(1.18) saturate(1.4);
}

.wp-bfilter-chiara {
    filter: brightness(1.12) contrast(0.92) saturate(1.08);
}

.wp-bfilter-dorata {
    filter: sepia(0.28) saturate(1.3) contrast(1.05) brightness(1.06);
}

.wp-bfilter-pergamena {
    filter: sepia(0.5) contrast(0.9) brightness(1.08) saturate(0.72);
}

.wp-bfilter-rosa {
    filter: sepia(0.16) hue-rotate(-14deg) saturate(1.28) brightness(1.06);
}

.wp-bfilter-polvere {
    filter: grayscale(0.45) contrast(0.92) brightness(1.05) sepia(0.12);
}

.wp-bfilter-luna {
    filter: grayscale(1) contrast(1.08) brightness(1.08);
}

.wp-bfilter-notturna {
    filter: brightness(0.82) contrast(1.2) saturate(0.82);
}

.wp-bfilter-gelo {
    filter: contrast(1.05) saturate(0.78) brightness(1.06) hue-rotate(18deg);
}

.wp-profile-dossier-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.wp-profile-dossier-block {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(83, 60, 28, 0.48);
    border-radius: 7px;
    background: rgba(5, 7, 11, 0.42);
}

.wp-profile-dossier-block + .wp-profile-dossier-block {
    margin-top: 10px;
}

.wp-profile-dossier-columns > .wp-profile-dossier-block + .wp-profile-dossier-block {
    margin-top: 0;
}

.wp-profile-dossier-block h3 {
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(108, 72, 28, 0.3);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wp-profile-dossier-block > p,
.wp-profile-dossier-empty {
    margin: 0;
    color: rgba(227, 216, 184, 0.74);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    line-height: 1.4;
}

.wp-profile-dossier-empty {
    color: rgba(227, 216, 184, 0.6);
    font-style: italic;
}

.wp-profile-dossier-entry {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(83, 60, 28, 0.32);
    border-radius: 5px;
    background: rgba(11, 10, 16, 0.5);
}

.wp-profile-dossier-entry + .wp-profile-dossier-entry {
    margin-top: 6px;
}

.wp-profile-dossier-entry strong,
.wp-profile-dossier-entry small,
.wp-profile-dossier-entry p {
    display: block;
}

.wp-profile-dossier-entry-head {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.wp-profile-dossier-entry-head em {
    flex: 0 0 auto;
    color: #b58b4a;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    font-style: normal;
}

.wp-profile-dossier-entry strong {
    color: #e3d8b8;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 500;
}

.wp-profile-dossier-entry small {
    margin-top: 2px;
    color: #b58b4a;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
}

.wp-profile-dossier-entry p {
    margin: 4px 0 0;
    color: rgba(227, 216, 184, 0.66);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    line-height: 1.35;
}

.wp-profile-dossier-license-grid,
.wp-profile-dossier-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

#wp-profile-panel-dossier-skills {
    height: auto;
    min-height: 100%;
    overflow: visible;
    padding: 0;
}

.wp-profile-section-content:has(#wp-profile-panel-dossier-skills:not([hidden])) {
    overflow: visible;
    padding: var(--wp-profile-panel-gap) 0 0;
}

.wp-profile-sections:has(#wp-profile-panel-dossier-skills:not([hidden])) {
    height: auto;
    min-height: clamp(520px, 60vh, 590px);
}

.wp-profile-dossier-panel {
    overflow: visible;
    padding: 0;
}

.wp-profile-dossier-card {
    position: relative;
    isolation: isolate;
    overflow: visible;
    padding: clamp(38px, 3.5vw, 50px) clamp(34px, 4vw, 58px) clamp(32px, 3vw, 44px);
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 0, rgba(216, 169, 78, 0.045), transparent 34%),
        linear-gradient(118deg, rgba(5, 8, 12, 0.94), rgba(7, 9, 14, 0.9) 56%, rgba(9, 8, 13, 0.93));
    box-shadow: none;
}

.wp-profile-dossier-panel .wp-profile-dossier-card {
    height: auto;
    min-height: clamp(520px, 60vh, 590px);
}

.wp-profile-section-content:has(.wp-profile-dossier-panel:not([hidden])) {
    overflow: visible;
    padding: var(--wp-profile-panel-gap) 0 0;
}

.wp-profile-sections:has(.wp-profile-dossier-panel:not([hidden])) {
    height: auto;
    min-height: clamp(520px, 60vh, 590px);
}

.wp-profile-dossier-card::before {
    position: absolute;
    inset: 0;
    z-index: 10;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 38px 44px;
    border-image-source: url('../images/photos/frames/photo-gallery-panel-frame.png');
    border-image-slice: 38 44;
    border-image-width: 38px 44px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-profile-dossier-card > * {
    position: relative;
    z-index: 2;
}

.wp-profile-dossier-card > .wp-profile-dossier-page-header {
    min-height: clamp(58px, 8vh, 78px);
    display: grid;
    grid-template-columns: minmax(70px, 1fr) auto minmax(70px, 1fr);
    align-items: center;
    justify-content: initial;
    gap: clamp(16px, 2vw, 28px);
    margin: 0 0 18px;
    padding: 0 clamp(12px, 2vw, 30px) clamp(11px, 1.7vh, 18px);
    border: 0;
    text-align: center;
}

.wp-profile-dossier-card > .wp-profile-dossier-page-header h2 {
    margin: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(18px, 1.7vw, 25px);
    font-weight: 500;
    letter-spacing: 1.8px;
    line-height: 1.05;
    text-transform: uppercase;
}

.wp-profile-dossier-card > .wp-profile-dossier-page-header p {
    margin: 8px 0 0;
    color: rgba(227, 216, 184, 0.62);
    font-family: 'Cinzel', serif;
    font-size: clamp(8px, 0.72vw, 11px);
    font-style: normal;
    letter-spacing: 1.15px;
    line-height: 1.2;
    text-transform: uppercase;
}

.wp-profile-dossier-card > .wp-profile-dossier-page-header > .wp-profile-information-title-rule {
    width: 100%;
    display: block;
    font-size: 0;
}

.wp-profile-dossier-skills-px {
    min-width: 116px;
    min-height: 34px;
    width: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 14px;
    position: relative;
    color: #b9965c;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    font-style: normal;
    margin: -10px auto 14px;
    white-space: nowrap;
}

.wp-profile-dossier-skills-px::before {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 13px 14px;
    border-image-source: url('../images/stats/roleplay/available-points-frame.png');
    border-image-slice: 13 14;
    border-image-width: 13px 14px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-profile-dossier-skills-px strong {
    color: #e3d8b8;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 500;
}

.wp-profile-dossier-skills-columns {
    gap: 14px;
    margin-bottom: 14px;
}

.wp-profile-dossier-skills-block {
    position: relative;
}

.wp-profile-dossier-skills-block + .wp-profile-dossier-skills-block {
    margin-top: 14px;
}

.wp-profile-dossier-skills-columns > .wp-profile-dossier-skills-block + .wp-profile-dossier-skills-block {
    margin-top: 0;
}

.wp-profile-dossier-block-heading {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

.wp-profile-dossier-skills-block .wp-profile-dossier-block-heading h3 {
    margin: 0;
    padding: 0;
    border: 0;
}

.wp-profile-dossier-panel .wp-profile-dossier-block {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 27px 26px 24px;
    border: 0;
    border-radius: 0;
    background: rgba(5, 8, 12, 0.64);
    box-shadow: none;
}

.wp-profile-dossier-panel .wp-profile-dossier-block::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: auto;
    height: auto;
    box-sizing: border-box;
    border: 32px solid transparent;
    border-image-source: url('../images/story/frames/story-widget-frame.webp');
    border-image-slice: 58;
    border-image-width: 32px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

.wp-profile-dossier-panel .wp-profile-dossier-block::after {
    content: none;
}

.wp-profile-dossier-panel .wp-profile-dossier-block > * {
    position: relative;
    z-index: 2;
}

.wp-profile-dossier-panel .wp-profile-dossier-block h3 {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(11px, 0.95vw, 14px);
    font-weight: 500;
    letter-spacing: 0.8px;
    line-height: 1.1;
    text-transform: uppercase;
}

.wp-profile-dossier-panel .wp-profile-dossier-block h3::after {
    width: 107px;
    max-width: 60%;
    height: 9px;
    display: block;
    margin-top: 5px;
    background: url('../images/story/decorations/story-heading-divider.png') left center / 100% 100% no-repeat;
    content: '';
}

.wp-profile-dossier-competency-list {
    display: grid;
    gap: 7px;
}

.wp-profile-dossier-skills-card .wp-profile-dossier-entry {
    position: relative;
    padding: 9px 10px;
    border-color: rgba(83, 60, 28, 0.44);
    border-radius: 2px;
    background: rgba(3, 6, 10, 0.58);
    transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.wp-profile-dossier-skills-card .wp-profile-dossier-entry:hover {
    border-color: rgba(135, 99, 52, 0.72);
    background: rgba(12, 11, 16, 0.74);
    transform: translateY(-1px);
}

.wp-profile-dossier-skills-card .wp-profile-dossier-entry strong {
    color: #e3d8b8;
    font-size: 10.5px;
}

.wp-profile-dossier-skills-card .wp-profile-dossier-entry-head em {
    color: #c99436;
}

.wp-profile-dossier-skills-card .wp-profile-dossier-entry small {
    color: #987033;
}

.wp-profile-dossier-skills-card .wp-profile-dossier-entry p {
    color: rgba(227, 216, 184, 0.7);
    font-size: 11.5px;
}

.wp-profile-dossier-skills-block--secrets > p {
    min-height: 34px;
    display: flex;
    align-items: center;
}

@media (max-width: 980px) {
    .wp-profile-dossier-card {
        min-height: 0;
        padding: 36px 24px 32px;
    }

    .wp-profile-dossier-card > .wp-profile-dossier-page-header {
        min-height: 55px;
        margin-bottom: 15px;
        padding-bottom: 9px;
    }

}

@media (max-width: 720px) {
    .wp-profile-dossier-card {
        padding: 34px 18px 30px;
    }

    .wp-profile-dossier-card::before {
        border-width: 30px 26px;
        border-image-slice: 38 44;
        border-image-width: 30px 26px;
    }

    .wp-profile-dossier-card > .wp-profile-dossier-page-header {
        grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
        gap: 10px;
        padding-right: 0;
        padding-left: 0;
    }

    .wp-profile-dossier-card > .wp-profile-dossier-page-header h2 {
        font-size: 16px;
        letter-spacing: 1.2px;
    }

    .wp-profile-dossier-panel .wp-profile-dossier-block {
        padding: 24px 22px 22px;
    }

    .wp-profile-dossier-panel .wp-profile-dossier-block::before {
        border-width: 26px;
        border-image-width: 26px;
    }

    .wp-profile-dossier-skills-columns,
    .wp-profile-dossier-skills-card .wp-profile-dossier-license-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-profile-dossier-entry-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

.wp-profile-dossier-intro {
    margin: -3px 2px 12px;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    font-style: italic;
    line-height: 1.4;
}

.wp-profile-dossier-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.wp-profile-dossier-meta > span {
    position: relative;
    isolation: isolate;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 18px;
    border: 0;
    border-radius: 0;
    background: rgba(5, 7, 11, 0.48);
}

#wp-profile-panel-dossier-medical .wp-profile-dossier-meta > span::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent;
    border-width: 22px;
    border-image-source: url('../images/photos/frames/memory-input-frame.png');
    border-image-slice: 22;
    border-image-width: 22px;
    border-image-repeat: stretch;
    content: '';
    pointer-events: none;
}

#wp-profile-panel-dossier-medical .wp-profile-dossier-meta > span > * {
    position: relative;
    z-index: 1;
}

.wp-profile-dossier-meta small {
    color: #b58b4a;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    text-transform: uppercase;
}

.wp-profile-dossier-meta strong {
    overflow: hidden;
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-profile-dossier-table {
    width: 100%;
    border-collapse: collapse;
    color: rgba(227, 216, 184, 0.76);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
}

.wp-profile-dossier-table th,
.wp-profile-dossier-table td {
    padding: 6px 7px;
    border-bottom: 1px solid rgba(227, 216, 184, 0.08);
    text-align: left;
}

.wp-profile-dossier-table th:last-child,
.wp-profile-dossier-table td:last-child {
    text-align: right;
}

.wp-profile-dossier-table th {
    color: #b58b4a;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    font-weight: 500;
    text-transform: uppercase;
}

.wp-profile-dossier-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(83, 60, 28, 0.46);
    border-radius: 7px;
    background: rgba(5, 7, 11, 0.46);
}

.wp-profile-dossier-item > img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: pixelated;
}

.wp-profile-dossier-item strong {
    color: #e3d8b8;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 500;
}

.wp-profile-dossier-item p,
.wp-profile-dossier-item small {
    margin: 3px 0 0;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    line-height: 1.3;
}

.wp-profile-settings-form {
    min-height: 0;
}

.wp-profile-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 14px;
}

.wp-profile-settings-grid > * {
    min-width: 0;
}

.wp-profile-settings-form label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wp-profile-settings-form label > span {
    color: #b58b4a;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.wp-profile-settings-form input,
.wp-profile-settings-form textarea {
    width: 100%;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid rgba(83, 60, 28, 0.7);
    border-radius: 7px;
    outline: none;
    background: rgba(7, 9, 14, 0.76);
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
}

.wp-profile-settings-form input:focus,
.wp-profile-settings-form textarea:focus {
    border-color: rgba(216, 169, 78, 0.82);
    box-shadow: 0 0 10px rgba(216, 169, 78, 0.1);
}

.wp-profile-settings-form input[type='file'] {
    padding: 7px;
    font-size: 10px;
}

.wp-profile-settings-biography {
    grid-column: 1 / -1;
}

.wp-profile-settings-biography textarea {
    min-height: 142px;
    /* "flex: 1" (basis 0) ignorava l'altezza impostata dal trascinamento della maniglia */
    flex: 0 0 auto;
    resize: vertical;
}

.wp-profile-settings-story-field textarea {
    min-height: 116px;
    flex: 0 0 auto;
    resize: vertical;
}

.wp-profile-settings-form label > small {
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    font-style: italic;
    line-height: 1.25;
}

.wp-profile-settings-media {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 11px;
    border: 1px solid rgba(83, 60, 28, 0.48);
    border-radius: 7px;
    background: rgba(5, 7, 11, 0.44);
}

.wp-profile-settings-media > p {
    min-height: 28px;
    margin: 0;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    font-style: italic;
    line-height: 1.35;
}

.wp-profile-settings-media-controls {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.wp-profile-settings-zoom > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wp-profile-settings-zoom output {
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.wp-profile-settings-form .wp-profile-settings-zoom input[type='range'] {
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: #d8a94e;
    cursor: pointer;
}

.wp-profile-settings-media-controls > div {
    display: flex;
    gap: 6px;
}

.wp-profile-settings-media-controls button {
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(216, 169, 78, 0.48);
    border-radius: 5px;
    background: rgba(74, 51, 20, 0.16);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    cursor: pointer;
}

.wp-profile-settings-media-controls button:hover:not(:disabled),
.wp-profile-settings-media-controls button:focus-visible {
    border-color: #d8a94e;
    background: rgba(116, 75, 24, 0.26);
    outline: none;
}

.wp-profile-settings-media-controls button:disabled,
.wp-profile-settings-form .wp-profile-settings-zoom input[type='range']:disabled {
    cursor: not-allowed;
    opacity: 0.36;
}

.wp-character-widget-cover.is-repositionable-media,
.wp-character-widget-photo.is-repositionable-media {
    cursor: grab;
    touch-action: none;
    user-select: none;
    box-shadow: inset 0 0 0 1px rgba(216, 169, 78, 0.88), inset 0 0 18px rgba(216, 169, 78, 0.12);
}

.wp-character-widget-cover.is-repositionable-media.is-repositioning,
.wp-character-widget-photo.is-repositionable-media.is-repositioning {
    cursor: grabbing;
}

.wp-character-widget > .wp-character-widget-portrait.is-editing-media {
    pointer-events: auto;
}

.wp-character-widget-portrait.is-editing-media .wp-character-widget-ring,
.wp-character-widget-portrait.is-editing-media .wp-character-widget-crest {
    pointer-events: none;
}

.wp-character-widget-cover.is-preview-highlighted,
.wp-character-widget-photo.is-preview-highlighted {
    animation: wp-profile-media-preview-glow 900ms ease-out;
}

@keyframes wp-profile-media-preview-glow {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(216, 169, 78, 0.88), inset 0 0 18px rgba(216, 169, 78, 0.12); }
    45% { box-shadow: inset 0 0 0 2px #d8a94e, inset 0 0 28px rgba(216, 169, 78, 0.28), 0 0 18px rgba(216, 169, 78, 0.28); }
}

.wp-profile-settings-form > footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 14px;
}

.wp-profile-settings-form > footer p {
    min-width: 0;
    flex: 1;
    margin: 0;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
}

.wp-profile-settings-form > footer p.is-error {
    color: #c98578;
}

.wp-profile-settings-form > footer p.is-success {
    color: #8eaa78;
}

.wp-profile-settings-form > footer button {
    min-width: 132px;
    height: 30px;
    border: 1px solid rgba(216, 169, 78, 0.58);
    border-radius: 5px;
    background: rgba(74, 51, 20, 0.2);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    cursor: pointer;
}

.wp-profile-settings-form > footer button:hover,
.wp-profile-settings-form > footer button:focus-visible {
    border-color: #d8a94e;
    background: rgba(116, 75, 24, 0.28);
    outline: none;
}

.wp-profile-settings-form > footer button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.wp-profile-detail-empty {
    margin: 0;
    padding: 36px 10px;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.wp-wall-composer {
    position: relative;
    z-index: 8;
    isolation: isolate;
    width: 100%;
    height: clamp(92px, 10.5vh, 118px);
    max-width: none;
    min-height: 92px;
    flex: 0 0 auto;
    align-self: start;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0 12px;
    padding: 11px 18px 34px;
    border: 1px solid rgba(83, 60, 28, 0.9);
    border-radius: 8px;
    background: linear-gradient(118deg, rgba(8, 10, 15, 0.72), rgba(10, 11, 17, 0.64) 52%, rgba(14, 11, 18, 0.7));
    box-shadow: inset 0 0 0 1px rgba(216, 169, 78, 0.025), 0 6px 18px rgba(0, 0, 0, 0.16);
    transform: translateY(var(--wp-board-top-edge));
}

.wp-wall-stream {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    align-self: stretch;
        overscroll-behavior-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-wall-stream::-webkit-scrollbar {
    width: 5px;
}

.wp-wall-stream::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.05);
}

.wp-wall-stream::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(225, 189, 105, 0.78), rgba(139, 94, 43, 0.72));
}

.wp-wall-stream::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(238, 202, 124, 0.9), rgba(169, 116, 53, 0.84));
}

.wp-wall-composer-feedback {
    position: absolute;
    right: 18px;
    bottom: 34px;
    left: 76px;
    overflow: hidden;
    margin: 0;
    color: rgba(227, 216, 184, 0.62);
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-wall-composer-feedback:empty {
    display: none;
}

.wp-wall-composer-feedback.is-error {
    color: #c98578;
}

.wp-wall-composer-feedback.is-success {
    color: #8eaa78;
}

.wp-wall-composer::before {
    content: none;
}

.wp-wall-composer > * {
    position: relative;
    z-index: 2;
}

.wp-wall-composer-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    align-self: center;
    overflow: hidden;
    border: 1px solid rgba(216, 169, 78, 0.56);
    border-radius: 50%;
    background: #080b0d;
    box-shadow: 0 0 9px rgba(216, 169, 78, 0.1);
}

.wp-wall-composer-avatar img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    transform: translate(-50%, -50%);
    user-select: none;
}

.wp-wall-composer-avatar img[src*="figure="],
.wp-wall-comment-form-avatar img[src*="figure="] {
    top: 50%;
    left: 50%;
    width: 150%;
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: 50% 50%;
    transform: translate(-51%, -36%);
}

.wp-wall-composer-field {
    min-width: 0;
    display: flex;
    align-items: center;
}

.wp-wall-composer-field textarea {
    width: 100%;
    height: 38px;
    resize: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-wall-composer-field textarea::-webkit-scrollbar {
    width: 4px;
}

.wp-wall-composer-field textarea::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.06);
}

.wp-wall-composer-field textarea::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(225, 189, 105, 0.82), rgba(139, 94, 43, 0.76));
    box-shadow: 0 0 4px rgba(216, 169, 78, 0.14);
}

.wp-wall-composer-field textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(238, 202, 124, 0.92), rgba(169, 116, 53, 0.86));
}

.wp-wall-composer-field textarea::placeholder {
    color: rgba(227, 216, 184, 0.58);
    opacity: 1;
}

.wp-wall-composer-tools {
    position: absolute;
    bottom: 11px;
    left: 76px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 17px;
}

.wp-wall-composer-tools button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(216, 169, 78, 0.72);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 160ms ease, filter 160ms ease;
}

.wp-wall-composer-tools svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.wp-wall-composer-tools button:hover,
.wp-wall-composer-tools button:focus-visible {
    color: #e9bd61;
    filter: drop-shadow(0 0 4px rgba(216, 169, 78, 0.22));
    outline: none;
}

.wp-wall-composer-tools button.is-selected {
    color: #e9bd61;
    filter: drop-shadow(0 0 4px rgba(216, 169, 78, 0.24));
}

.wp-wall-composer-tools [data-wall-photo-label] {
    overflow: hidden;
    max-width: 82px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-wall-mention-menu[hidden] {
    display: none;
}

.wp-wall-mention-menu {
    position: absolute;
    top: 62px;
    left: 75px;
    z-index: 30;
    width: min(245px, calc(100% - 185px));
    max-height: 190px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid rgba(105, 69, 28, 0.92);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(7, 9, 14, 0.96), rgba(12, 11, 18, 0.96));
    backdrop-filter: blur(7px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.48), inset 0 0 18px rgba(216, 169, 78, 0.025);
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-wall-mention-option {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    padding: 5px 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: rgba(227, 216, 184, 0.78);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
}

.wp-wall-mention-option::before {
    width: 20px;
    height: 20px;
    display: inline-grid;
    flex: 0 0 20px;
    place-items: center;
    margin-right: 7px;
    border: 1px solid rgba(216, 169, 78, 0.38);
    border-radius: 50%;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    content: '@';
}

.wp-wall-mention-option:hover,
.wp-wall-mention-option:focus-visible,
.wp-wall-mention-option.is-active {
    outline: none;
    background: rgba(116, 75, 24, 0.2);
    color: #f0dfb4;
}

.wp-wall-composer-actions {
    position: absolute;
    right: 18px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wp-wall-composer-actions button {
    min-width: 78px;
    height: 22px;
    padding: 0 13px;
    border: 1px solid rgba(216, 169, 78, 0.52);
    border-radius: 4px;
    background: rgba(74, 51, 20, 0.18);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.wp-wall-composer-actions button:hover,
.wp-wall-composer-actions button:focus-visible {
    border-color: rgba(238, 190, 91, 0.82);
    background: rgba(116, 75, 24, 0.28);
    color: #f0dfb4;
    box-shadow: 0 0 10px rgba(216, 169, 78, 0.15);
    outline: none;
}

.wp-wall-composer-actions button:disabled {
    cursor: wait;
    opacity: 0.58;
}

/* Testo lungo: il riquadro segue il campo (l'altezza la imposta profile.js), l'avatar resta in alto */
.wp-wall-composer.is-expanded {
    height: auto;
    /* spazio sotto il campo per Foto/Pubblica (bottom 10px + 22px) anche dove il padding e' 29px */
    padding-bottom: 38px;
}

.wp-wall-composer.is-expanded .wp-wall-composer-avatar {
    align-self: start;
    margin-top: 2px;
}

.wp-wall-composer.is-expanded .wp-wall-composer-field {
    align-items: start;
}

.wp-wall-composer-count {
    margin-right: 10px;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}

.wp-wall-composer-count.is-full {
    color: #c98578;
}

.wp-wall-post-content > p.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    overflow: hidden;
}

.wp-wall-post-more {
    margin: 2px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(216, 169, 78, 0.78);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
    transition: color 150ms ease;
}

.wp-wall-post-more:hover,
.wp-wall-post-more:focus-visible {
    color: #f0c66d;
    outline: none;
}

.wp-wall-feed {
    width: 100%;
    max-width: none;
    grid-column: 2;
    grid-row: 2;
    display: grid;
    gap: 6px;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
    margin-top: 0;
    padding-right: 0;
    overflow: visible;
    align-content: start;
}

.wp-wall-feed--without-composer {
    margin-top: -8px;
}

.wp-wall-post {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(83, 60, 28, 0.9);
    border-radius: 8px;
    background: linear-gradient(118deg, rgba(8, 10, 15, 0.72), rgba(10, 11, 17, 0.64) 52%, rgba(14, 11, 18, 0.7));
    box-shadow: inset 0 0 0 1px rgba(216, 169, 78, 0.025), 0 6px 18px rgba(0, 0, 0, 0.16);
}

.wp-wall-post-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(216, 169, 78, 0.48);
    border-radius: 50%;
    background-color: #080b0d;
    box-shadow: 0 0 8px rgba(216, 169, 78, 0.08);
}

.wp-wall-post-avatar img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    transform: translate(-50%, -50%);
    user-select: none;
}

.wp-wall-post-content {
    min-width: 0;
}

.wp-wall-post-header {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.wp-wall-post-header a {
    overflow: hidden;
    color: #e3d8b8;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-wall-post-header a:hover,
.wp-wall-post-header a:focus-visible {
    color: #d8a94e;
    outline: none;
}

.wp-wall-post-header time {
    flex: 0 0 auto;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    letter-spacing: 0.2px;
}

.wp-wall-post-content > p {
    margin: 0;
    color: rgba(227, 216, 184, 0.82);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    line-height: 1.42;
    overflow-wrap: anywhere;
    white-space: normal;
}

.wp-wall-post-content > p a {
    color: #d8a94e;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(216, 169, 78, 0.12);
    transition: color 150ms ease, text-shadow 150ms ease;
}

.wp-wall-post-content > p a:hover,
.wp-wall-post-content > p a:focus-visible {
    color: #f0c66d;
    text-shadow: 0 0 8px rgba(216, 169, 78, 0.25);
    outline: none;
}

.wp-wall-post-media {
    width: 100%;
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.wp-wall-post-media img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(83, 60, 28, 0.78);
    border-radius: 7px;
    background: #080b0d;
    box-shadow: inset 0 0 0 1px rgba(216, 169, 78, 0.025);
}

.wp-wall-post-image-open {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    cursor: zoom-in;
}

.wp-wall-post-image-open:focus-visible {
    outline: 1px solid rgba(216, 169, 78, 0.78);
    outline-offset: 2px;
}

.wp-wall-post-image-open:hover img,
.wp-wall-post-image-open:focus-visible img {
    border-color: rgba(216, 169, 78, 0.72);
    filter: brightness(1.04);
}

.wp-wall-image-modal {
    z-index: 10040;
}

.wp-wall-image-modal-dialog {
    width: min(1040px, calc(100vw - 80px));
    max-height: min(88vh, 820px);
}

.wp-wall-image-modal-inner {
    max-height: min(88vh, 820px);
    padding: clamp(22px, 2.5vw, 34px) clamp(28px, 3.4vw, 48px) clamp(26px, 3vw, 42px);
}

.wp-wall-image-modal-head {
    min-height: 48px;
    padding-bottom: 8px;
}

.wp-wall-image-modal-head h2 {
    overflow: hidden;
    max-width: calc(100% - 90px);
    font-size: clamp(18px, 1.7vw, 25px);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-wall-image-modal-content {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-wall-image-modal-content img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(88vh - 130px);
    display: block;
    object-fit: contain;
    border: 1px solid rgba(83, 60, 28, 0.82);
    border-radius: 7px;
    background: #05070a;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
}

/* Scheda del personaggio non giocante (familiare NPC / legame senza profilo). */
.wp-relation-modal {
    z-index: 10040;
}

.wp-relation-modal-dialog {
    width: min(460px, 100%);
    max-height: min(88vh, 760px);
}

.wp-relation-modal-inner {
    max-height: min(88vh, 760px);
    padding: clamp(24px, 3vw, 36px) clamp(26px, 3.4vw, 44px) clamp(28px, 3.2vw, 40px);
}

.wp-relation-modal-head {
    min-height: 0;
    padding-bottom: 4px;
}

.wp-relation-modal-kicker {
    margin-bottom: 4px;
    color: rgba(216, 169, 78, 0.62);
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.wp-relation-modal-head h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(17px, 1.6vw, 23px);
    letter-spacing: 1.6px;
    line-height: 1.15;
}

.wp-relation-modal-content {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    overflow: auto;
    padding: 6px 4px 2px;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-relation-modal-portrait {
    position: relative;
    width: clamp(120px, 34vw, 156px);
    aspect-ratio: 1;
    display: grid;
    flex: 0 0 auto;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(216, 169, 78, 0.78);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 30%, rgba(95, 68, 27, 0.28), transparent 60%),
        #080b0d;
    color: #d8a94e;
    box-shadow:
        0 0 0 4px rgba(5, 8, 13, 0.96),
        0 0 0 5px rgba(216, 169, 78, 0.34),
        0 0 28px rgba(216, 169, 78, 0.16),
        0 18px 42px rgba(0, 0, 0, 0.55);
}

.wp-relation-modal-portrait img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    transform: translate(-50%, -50%);
    user-select: none;
}

.wp-relation-modal-portrait img[hidden] {
    display: none;
}

.wp-relation-modal-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.wp-relation-modal-initial {
    font-family: 'Cinzel', serif;
    font-size: clamp(44px, 12vw, 58px);
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 0 18px rgba(216, 169, 78, 0.28);
}

.wp-relation-modal-initial[hidden] {
    display: none;
}

.wp-relation-modal-label {
    margin: 6px 0 0;
}

.wp-relation-modal-label span {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(216, 169, 78, 0.42);
    border-radius: 999px;
    background: linear-gradient(100deg, rgba(64, 44, 19, 0.28), rgba(12, 12, 17, 0.5));
    color: #e1bd69;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 225, 160, 0.06);
}

.wp-relation-modal-meta {
    margin: 0;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.4px;
}

.wp-relation-modal-meta[hidden] {
    display: none;
}

.wp-relation-modal-description {
    max-width: 34ch;
    margin: 4px 0 0;
    color: rgba(227, 216, 184, 0.82);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wp-relation-modal-description[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .wp-relation-modal-dialog {
        width: min(460px, calc(100vw - 48px));
    }

    .wp-relation-modal-inner {
        padding: 24px 22px 26px;
    }
}

.wp-wall-post-actions {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
}

.wp-wall-post-stats,
.wp-wall-post-controls {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.wp-wall-post-like-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1;
}

.wp-wall-post-like-count > span:first-child {
    display: inline-block;
    color: rgba(227, 216, 184, 0.62);
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px currentColor;
    font-size: 15px;
    transform: scaleX(1.2);
    transform-origin: center;
    transition: color 160ms ease, filter 160ms ease;
}

.wp-wall-post-like-count.is-liked > span:first-child {
    color: #c75460;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
    filter: drop-shadow(0 0 4px rgba(199, 84, 96, 0.22));
}

.wp-wall-post-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    transition: color 160ms ease;
}

.wp-wall-post-comment-count:disabled {
    cursor: default;
}

.wp-wall-post-comment-count svg {
    width: 13px;
    height: 13px;
}

.wp-wall-post-like-button,
.wp-wall-post-comment-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    transition: color 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.wp-wall-post-like-button svg,
.wp-wall-post-comment-button svg {
    width: 13px;
    height: 13px;
}

.wp-wall-post-like-button > span,
.wp-wall-comment-like > span {
    display: inline-flex;
    flex-direction: column;
}

.wp-wall-post-like-button > span::after,
.wp-wall-comment-like > span::after {
    height: 0;
    overflow: hidden;
    visibility: hidden;
    content: attr(data-label);
    font-weight: 600;
    pointer-events: none;
    user-select: none;
}

.wp-wall-post-like-button:focus-visible,
.wp-wall-post-comment-button:focus-visible,
.wp-wall-post-comment-count:focus-visible {
    border-radius: 2px;
    color: #e3d8b8;
    outline: 1px solid rgba(216, 169, 78, 0.72);
    outline-offset: 3px;
}

@media (hover: hover) {
    .wp-wall-post-like-button:hover,
    .wp-wall-post-comment-button:hover,
    .wp-wall-post-comment-count:not(:disabled):hover {
        color: #e3d8b8;
    }
}

.wp-wall-post-like-button.is-liked,
.wp-wall-post-like-button[aria-pressed="true"] {
    color: #d8a94e;
    filter: drop-shadow(0 0 4px rgba(216, 169, 78, 0.2));
}

.wp-wall-post-like-button.is-liked svg,
.wp-wall-post-like-button[aria-pressed="true"] svg {
    fill: currentColor;
}

.wp-wall-post-like-button.is-liked > span,
.wp-wall-post-like-button[aria-pressed="true"] > span {
    font-weight: 600;
}

.wp-wall-post-like-button:disabled {
    cursor: wait;
}

.wp-wall-post-like-button.is-pending {
    opacity: 0.5;
}

/* Modifica / elimina del post e l'etichetta "modificato" accanto alla data. */
/* Con quattro pulsanti la riga non ci sta piu' sui telefoni: va a capo invece di tagliarsi. */
.wp-wall-post-actions,
.wp-wall-post-controls {
    flex-wrap: wrap;
}

.wp-wall-post-controls {
    justify-content: flex-end;
    row-gap: 6px;
}

.wp-wall-post-like-button,
.wp-wall-post-comment-button,
.wp-wall-post-edit-button,
.wp-wall-post-delete-button {
    white-space: nowrap;
}

.wp-wall-post-header time {
    margin-left: auto;
}

.wp-wall-post-edited {
    flex: 0 0 auto;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-style: italic;
    letter-spacing: 0.2px;
}

.wp-wall-post-when {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
}

.wp-wall-post-date {
    position: relative;
    display: inline-flex;
    align-items: baseline;
}

.wp-wall-post-date-toggle {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    margin: -6px;
    padding: 6px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: 0.2px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.wp-wall-post-date-toggle:focus-visible {
    outline: 1px solid rgba(216, 169, 78, 0.72);
    outline-offset: -3px;
}

.wp-wall-post-date-toggle em {
    color: rgba(216, 169, 78, 0.66);
    font-style: italic;
    white-space: nowrap;
}

.wp-wall-post-date-full {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    z-index: 40;
    padding: 6px 11px 7px;
    border: 1px solid rgba(201, 151, 66, 0.62);
    border-radius: 6px;
    background: linear-gradient(118deg, rgba(8, 8, 13, 0.98), rgba(13, 11, 18, 0.98) 55%, rgba(11, 9, 16, 0.98));
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 225, 160, 0.05);
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 140ms ease, visibility 0s linear 140ms;
}

.wp-wall-post-date-full::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(201, 151, 66, 0.62);
    border-left: 1px solid rgba(201, 151, 66, 0.62);
    background: #0a0910;
    transform: rotate(45deg);
}

.wp-wall-post-date-toggle[aria-expanded="true"] + .wp-wall-post-date-full {
    opacity: 1;
    visibility: visible;
    transition: opacity 140ms ease;
}

@media (hover: hover) {
    .wp-wall-post-date-toggle:hover + .wp-wall-post-date-full {
        opacity: 1;
        visibility: visible;
        transition: opacity 140ms ease;
    }
}

@media (min-width: 761px) {
    body .wp-wall-post-date-toggle {
        font-size: 10.5px;
    }
}

@media (max-width: 560px) {
    .wp-wall-post-header {
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

.wp-wall-post-edit-button,
.wp-wall-post-delete-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    transition: color 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.wp-wall-post-edit-button svg,
.wp-wall-post-delete-button svg {
    width: 13px;
    height: 13px;
}

.wp-wall-post-edit-button:hover,
.wp-wall-post-edit-button:focus-visible {
    color: #d8a94e;
    filter: drop-shadow(0 0 4px rgba(216, 169, 78, 0.2));
    outline: none;
}

.wp-wall-post-delete-button:hover,
.wp-wall-post-delete-button:focus-visible {
    color: #c75460;
    filter: drop-shadow(0 0 4px rgba(199, 84, 96, 0.22));
    outline: none;
}

.wp-wall-post-edit-button:disabled,
.wp-wall-post-delete-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.wp-wall-post-editor {
    display: grid;
    gap: 6px;
    margin: 0;
}

.wp-wall-post-editor-field {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 7px 8px;
    border: 1px solid rgba(135, 99, 52, 0.42);
    border-radius: 5px;
    background: rgba(5, 7, 10, 0.55);
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    line-height: 1.42;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-wall-post-editor-field:focus {
    border-color: rgba(216, 169, 78, 0.62);
    box-shadow: 0 0 6px rgba(216, 169, 78, 0.12);
}

.wp-wall-post-editor-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.wp-wall-post-editor-cancel,
.wp-wall-post-editor-save {
    padding: 3px 10px;
    border: 1px solid rgba(135, 99, 52, 0.42);
    border-radius: 4px;
    background: transparent;
    color: rgba(227, 216, 184, 0.7);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    line-height: 1.2;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.wp-wall-post-editor-save {
    border-color: rgba(216, 169, 78, 0.56);
    color: #d8a94e;
}

.wp-wall-post-editor-cancel:hover,
.wp-wall-post-editor-cancel:focus-visible,
.wp-wall-post-editor-save:hover,
.wp-wall-post-editor-save:focus-visible {
    border-color: rgba(216, 169, 78, 0.8);
    color: #f0c66d;
    background: rgba(216, 169, 78, 0.06);
    outline: none;
}

.wp-wall-post-editor-save:disabled {
    opacity: 0.5;
    cursor: wait;
}

.wp-wall-post-content > .wp-wall-post-feedback {
    margin: 4px 0 0;
    color: rgba(227, 216, 184, 0.62);
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    line-height: 1.3;
}

.wp-wall-post-content > .wp-wall-post-feedback.is-error {
    color: #c98578;
}

.wp-wall-comments {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(135, 99, 52, 0.2);
}

.wp-wall-comments[hidden] {
    display: none;
}

.wp-wall-comments-bar {
    display: flex;
    align-items: center;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid rgba(135, 99, 52, 0.2);
}

.wp-wall-comments-bar[hidden] {
    display: none;
}

.wp-wall-comments-bar:not([hidden]) + .wp-wall-comments {
    margin-top: 0;
    padding-top: 9px;
    border-top: 0;
}

.wp-wall-comments-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(216, 169, 78, 0.78);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
    transition: color 150ms ease;
}

.wp-wall-comments-toggle svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    transition: transform 160ms ease;
}

.wp-wall-comments-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.wp-wall-comments-toggle:focus-visible {
    border-radius: 2px;
    color: #f0c66d;
    outline: 1px solid rgba(216, 169, 78, 0.72);
    outline-offset: 2px;
}

@media (hover: hover) {
    .wp-wall-comments-toggle:hover {
        color: #f0c66d;
    }
}

.wp-wall-comment-list {
    display: grid;
    gap: 10px;
}

.wp-wall-comment {
    min-width: 0;
}

.wp-wall-comment-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
}

.wp-wall-comment-avatar {
    position: relative;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border: 1px solid rgba(216, 169, 78, 0.38);
    border-radius: 50%;
    background: #080b0d;
    box-shadow: 0 0 7px rgba(216, 169, 78, 0.06);
}

.wp-wall-comment-avatar img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    transform: translate(-50%, -50%);
    user-select: none;
}

.wp-wall-comment-body {
    min-width: 0;
}

.wp-wall-comment-body header {
    min-height: 15px;
    display: flex;
    align-items: baseline;
}

.wp-wall-comment-body header a {
    color: #e3d8b8;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.wp-wall-comment-body header a:hover,
.wp-wall-comment-body header a:focus-visible {
    color: #d8a94e;
    outline: none;
}

.wp-wall-comment-body > p {
    margin: 1px 0 0;
    color: rgba(227, 216, 184, 0.8);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    line-height: 1.34;
    overflow-wrap: anywhere;
}

.wp-wall-comment-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 9px;
    line-height: 1;
}

.wp-wall-comment-actions button {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(227, 216, 184, 0.62);
    font: inherit;
    cursor: pointer;
    transition: color 150ms ease, opacity 150ms ease;
}

.wp-wall-comment-actions button:focus-visible {
    border-radius: 2px;
    color: #e3d8b8;
    outline: 1px solid rgba(216, 169, 78, 0.72);
    outline-offset: 2px;
}

@media (hover: hover) {
    .wp-wall-comment-actions button:hover {
        color: #e3d8b8;
    }
}

.wp-wall-comment-like-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wp-wall-comment-actions .wp-wall-comment-like {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wp-wall-comment-like svg {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
}

.wp-wall-comment-actions .wp-wall-comment-like.is-liked,
.wp-wall-comment-actions .wp-wall-comment-like[aria-pressed="true"] {
    color: #d8a94e;
}

.wp-wall-comment-like.is-liked svg,
.wp-wall-comment-like[aria-pressed="true"] svg {
    fill: currentColor;
}

.wp-wall-comment-like.is-liked > span,
.wp-wall-comment-like[aria-pressed="true"] > span {
    font-weight: 600;
}

.wp-wall-comment-actions .wp-wall-comment-like:disabled {
    cursor: wait;
}

.wp-wall-comment-actions .wp-wall-comment-like.is-pending {
    opacity: 0.5;
}

.wp-wall-comment-replies {
    --wp-comment-thread-line-height: 17px;
    position: relative;
    display: grid;
    gap: 9px;
    margin: 8px 0 0 16px;
    padding-left: 26px;
}

.wp-wall-comment-replies::before {
    position: absolute;
    top: -13px;
    left: 0;
    width: 1px;
    height: calc(var(--wp-comment-thread-line-height) + 13px);
    background: rgba(135, 99, 52, 0.3);
    content: '';
}

.wp-wall-comment-replies:empty {
    display: none;
}

.wp-wall-comment--reply {
    position: relative;
}

.wp-wall-comment--reply::before {
    position: absolute;
    top: 17px;
    left: -26px;
    width: 20px;
    height: 1px;
    background: rgba(135, 99, 52, 0.3);
    content: '';
}

.wp-wall-comment-form {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 9px;
    margin-top: 11px;
    padding: 7px 9px;
    border: 1px solid rgba(83, 60, 28, 0.72);
    border-radius: 8px;
    background: rgba(6, 8, 12, 0.36);
}

.wp-wall-comment-form[hidden] {
    display: none;
}

.wp-wall-comment-form label {
    min-width: 0;
}

.wp-wall-comment-form textarea {
    width: 100%;
    height: 30px;
    resize: none;
    overflow-y: auto;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    line-height: 1.35;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
}

.wp-wall-comment-form textarea::placeholder {
    color: rgba(227, 216, 184, 0.44);
}

.wp-wall-comment-form > button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d8a94e;
    cursor: pointer;
    transition: color 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.wp-wall-comment-form > button:hover,
.wp-wall-comment-form > button:focus-visible {
    color: #f0c66d;
    filter: drop-shadow(0 0 5px rgba(216, 169, 78, 0.25));
    outline: none;
}

.wp-wall-comment-form > button:disabled {
    cursor: wait;
    opacity: 0.5;
}

.wp-wall-comment-form > button svg {
    width: 18px;
    height: 18px;
}

.wp-wall-comment-form > p {
    position: absolute;
    right: 44px;
    bottom: 1px;
    left: 52px;
    overflow: hidden;
    margin: 0;
    color: #c98578;
    font-family: 'Inter', sans-serif;
    font-size: 7px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-wall-comment-form.is-replying {
    border-color: rgba(216, 169, 78, 0.52);
    box-shadow: inset 0 0 12px rgba(216, 169, 78, 0.04);
}

.wp-wall-feed .wp-menzione {
    color: #d8a94e;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 0 6px rgba(216, 169, 78, 0.12);
    transition: color 150ms ease, text-shadow 150ms ease;
}

.wp-wall-feed .wp-menzione:focus-visible {
    border-radius: 2px;
    color: #f0c66d;
    outline: 1px solid rgba(216, 169, 78, 0.72);
    outline-offset: 1px;
}

@media (hover: hover) {
    .wp-wall-feed .wp-menzione:hover {
        color: #f0c66d;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }
}

@media (pointer: coarse) {
    .wp-wall-post-like-button,
    .wp-wall-post-comment-button,
    .wp-wall-post-edit-button,
    .wp-wall-post-delete-button,
    button.wp-wall-post-like-count,
    .wp-wall-post-comment-count,
    .wp-wall-comments-toggle,
    .wp-wall-comment-actions button {
        position: relative;
    }

    .wp-wall-post-like-button::after,
    .wp-wall-post-comment-button::after,
    .wp-wall-post-edit-button::after,
    .wp-wall-post-delete-button::after,
    button.wp-wall-post-like-count:not(:disabled)::after,
    .wp-wall-post-comment-count:not(:disabled)::after {
        position: absolute;
        top: calc(50% - 18px);
        right: -6px;
        left: -6px;
        height: 40px;
        content: '';
    }

    .wp-wall-comments-toggle::after,
    .wp-wall-comment-actions button::after {
        position: absolute;
        top: calc(50% - 20px);
        right: -6px;
        left: -6px;
        height: 40px;
        content: '';
    }

    .wp-wall-comments-toggle::after {
        right: -8px;
        left: -8px;
    }

    .wp-wall-comment-actions .wp-wall-comment-like::after {
        right: -1px;
    }

    .wp-wall-comment-actions .wp-wall-comment-like-count::after {
        left: -1px;
    }

    .wp-wall-post-controls {
        row-gap: 14px;
    }

    .wp-wall-post-header a,
    .wp-wall-post-content > p a,
    .wp-wall-post-more,
    .wp-wall-post-image-open,
    .wp-wall-comment-body header a,
    .wp-wall-comment-body > p a {
        position: relative;
        z-index: 1;
    }
}

.wp-wall-feed-empty {
    margin: 7px 0 0;
    padding: 15px;
    border: 1px solid rgba(83, 60, 28, 0.55);
    border-radius: 8px;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.wp-character-widget > .wp-character-widget-cover {
    position: absolute;
    top: 6px;
    right: 5px;
    bottom: 5px;
    left: 8px;
    z-index: 1;
    overflow: hidden;
    border-radius: 0;
    background: #080b10;
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
}

.wp-character-widget-cover > img,
.wp-character-widget-photo > img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    filter: none;
    transform: translate(-50%, -50%);
    user-select: none;
}

.wp-character-widget > .wp-character-widget-portrait {
    --wp-character-portrait-size: clamp(190px, 24vh, 222px);
    position: absolute;
    top: 50%;
    left: clamp(42px, 5vw, 76px);
    z-index: 3;
    width: var(--wp-character-portrait-size);
    height: var(--wp-character-portrait-size);
    transform: translateY(-50%);
    pointer-events: none;
}

.wp-character-widget-photo {
    position: absolute;
    top: 7.85%;
    left: 7.45%;
    width: 85.2%;
    height: 85.2%;
    overflow: hidden;
    border-radius: 50%;
    background: #080b0d;
}

.wp-character-widget-photo > img {
    border-radius: 50%;
}

.wp-character-widget-ring {
    position: absolute;
    top: -32.45%;
    left: -37.35%;
    z-index: 2;
    width: 135.15%;
    max-width: none;
    height: auto;
    display: block;
}

.wp-character-widget-crest {
    position: absolute;
    top: 68.25%;
    left: 10.75%;
    z-index: 4;
    width: 22.5%;
    height: 30%;
    filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.48));
}

.wp-character-widget-crest > img {
    position: absolute;
    top: -12.5%;
    left: -78.4%;
    width: 256.85%;
    max-width: none;
    height: auto;
    display: block;
}

.wp-character-widget > .wp-character-widget-copy {
    position: absolute;
    top: 50%;
    right: clamp(32px, 4vw, 64px);
    left: clamp(235px, 20vw, 270px);
    z-index: 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    transform: translateY(-50%);
}

.wp-character-widget-copy h1 {
    margin: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.75rem, 2.2vw, 2.15rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.08;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.wp-character-widget-role {
    --profile-badge-width: 125px;
    --profile-badge-height: 35px;
    --profile-badge-image: url('../images/profile/student-badge-frame.png');
    --profile-badge-image-width: 125;
    --profile-badge-left: calc(var(--profile-badge-height) * 14 / 35);
    --profile-badge-right: calc(var(--profile-badge-height) * 16 / 35);
    position: relative;
    width: auto;
    min-width: var(--profile-badge-width);
    max-width: 100%;
    height: auto;
    min-height: var(--profile-badge-height);
    box-sizing: border-box;
    display: grid;
    flex: none;
    place-items: center;
    margin-left: -7px;
    padding: 0 calc(var(--profile-badge-right) - 1px) 0 calc(var(--profile-badge-left) - 1px);
    isolation: isolate;
    background: var(--profile-badge-image) 46.6667% center / calc(100% * var(--profile-badge-image-width) / (var(--profile-badge-image-width) - 30)) 100% no-repeat content-box;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.wp-character-widget-role::before,
.wp-character-widget-role::after {
    position: absolute;
    top: 0;
    bottom: 0;
    background-image: var(--profile-badge-image);
    background-repeat: no-repeat;
    content: '';
    pointer-events: none;
}

.wp-character-widget-role::before {
    left: 0;
    width: var(--profile-badge-left);
    background-position: left center;
    background-size: calc(100% * var(--profile-badge-image-width) / 14) 100%;
}

.wp-character-widget-role::after {
    right: 0;
    width: var(--profile-badge-right);
    background-position: right center;
    background-size: calc(100% * var(--profile-badge-image-width) / 16) 100%;
}

.wp-character-widget-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-left: -7px;
}

.wp-character-widget-badges .wp-character-widget-role {
    margin-left: 0;
}

.wp-character-widget-role.wp-character-widget-blood-status > span {
    color: #e3d8b8;
}

.wp-character-widget-role.wp-character-widget-blood-status {
    --profile-badge-image: url('../images/profile/blood-status-badge-frame.png');
}

.wp-character-widget-role.wp-character-widget-school-year > span {
    color: #d8a94e;
}

.wp-character-widget-role.wp-character-widget-school-year {
    --profile-badge-width: 95px;
    --profile-badge-image: url('../images/profile/school-year-badge-frame.png');
    --profile-badge-image-width: 95;
}

.wp-character-widget-role > span {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding: 5px 0;
    color: #d8a94e;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.86rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.4px;
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 0 4px rgba(216, 169, 78, 0.15);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.wp-character-widget-motto {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: calc(100% - 3px);
    min-height: 34px;
    margin: 1px 0 0 3px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wp-character-widget-quote {
    color: rgba(198, 158, 82, 0.65);
    font-family: Georgia, serif;
    font-size: 1.45rem;
    line-height: 0;
}

.wp-character-widget-motto em {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.92rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.wp-character-widget--has-music > .wp-character-widget-copy {
    right: clamp(295px, 25vw, 360px);
}

.wp-character-widget > .wp-profile-music {
    position: absolute;
    top: 50%;
    right: clamp(24px, 2.4vw, 42px);
    z-index: 4;
    isolation: isolate;
    width: clamp(270px, 23vw, 320px);
    aspect-ratio: 360 / 158;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    padding: 17px 18px 14px;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    contain: none;
    overflow: visible;
    transform: translateY(-50%);
}

.wp-profile-music.wp-panel::after {
    content: none !important;
}

.wp-profile-music::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 0;
    background: url('../images/frames/profile-music-frame.png') center / 100% 100% no-repeat,
        linear-gradient(180deg, rgba(7, 8, 12, 0.98), rgba(5, 6, 10, 0.98)) center / calc(100% - 12px) calc(100% - 12px) no-repeat;
    content: '';
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65)) brightness(1.08);
    pointer-events: none;
}

.wp-profile-music > * {
    position: relative;
    z-index: 2;
}

.wp-profile-music h2 {
    margin: 0 0 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(108, 72, 28, 0.28);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.9px;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.wp-profile-music audio {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.wp-profile-music-controls {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 25px;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
}

.wp-profile-music-play,
.wp-profile-music-volume {
    display: grid;
    flex: none;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(216, 169, 78, 0.56);
    background: rgba(7, 8, 13, 0.76);
    color: #f2eee4;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.wp-profile-music-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.wp-profile-music-volume {
    width: 25px;
    height: 25px;
    border-color: transparent;
    border-radius: 5px;
    background: transparent;
}

.wp-profile-music-play:hover,
.wp-profile-music-play:focus-visible,
.wp-profile-music-volume:hover,
.wp-profile-music-volume:focus-visible {
    outline: 0;
    border-color: #d8a94e;
    background-color: rgba(87, 68, 40, 0.28);
    color: #edc46e;
}

.wp-profile-music-play-icon {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
}

.wp-profile-music-pause-icon {
    position: relative;
    display: none;
    width: 9px;
    height: 11px;
    border-right: 3px solid currentColor;
    border-left: 3px solid currentColor;
}

.wp-profile-music.is-playing .wp-profile-music-play-icon {
    display: none;
}

.wp-profile-music.is-playing .wp-profile-music-pause-icon {
    display: block;
}

.wp-profile-music-track {
    position: relative;
    min-width: 0;
}

.wp-profile-music-wave {
    display: flex;
    height: 18px;
    align-items: center;
    gap: 2px;
    padding: 0 1px;
}

.wp-profile-music-wave i {
    display: block;
    width: 2px;
    height: 5px;
    flex: 1 1 2px;
    border-radius: 1px;
    background: rgba(216, 169, 78, 0.2);
    transition: background-color 100ms ease, box-shadow 100ms ease;
}

.wp-profile-music-wave i:nth-child(4n + 1) {
    height: 8px;
}

.wp-profile-music-wave i:nth-child(4n + 2) {
    height: 14px;
}

.wp-profile-music-wave i:nth-child(4n + 3) {
    height: 10px;
}

.wp-profile-music-wave i:nth-child(6n) {
    height: 17px;
}

.wp-profile-music-wave i.is-elapsed {
    background: #d8a94e;
    box-shadow: 0 0 4px rgba(216, 169, 78, 0.42);
}

.wp-profile-music-track input[type='range'] {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 18px;
    margin: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
    opacity: 0;
}

.wp-profile-music-times {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;
    color: rgba(227, 216, 184, 0.62);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    line-height: 1;
}

.wp-profile-music-volume svg {
    width: 18px;
    height: 18px;
}

.wp-profile-music-volume.is-muted {
    color: rgba(242, 238, 228, 0.48);
}

.wp-profile-music-volume.is-muted::after {
    position: absolute;
    width: 19px;
    height: 1px;
    background: currentColor;
    content: '';
    transform: rotate(-45deg);
}

@media (min-width: 981px) {
    .wp-profile-side-stack {
        height: calc(100% + 8px);
    }

    html.wp-profile-concept-root {
        height: auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.wp-profile-concept-page {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .wp-profile-concept-main {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        grid-template-rows: auto auto auto;
        overflow: visible;
    }

    .wp-profile-concept-main > .wp-page-footer {
        margin-top: auto;
    }
}

@media (min-width: 981px) and (max-height: 1000px) {
    .wp-profile-side-stack {
        height: calc(100% + 3px);
    }

    body.wp-profile-concept-page .wp-sidebar {
        padding-top: 12px;
        padding-bottom: 8px;
    }

    body.wp-profile-concept-page .wp-logo {
        gap: 1px;
        margin-bottom: 2px;
        padding: 2px 8px 8px;
    }

    body.wp-profile-concept-page .wp-shield-img {
        width: 43px;
    }

    body.wp-profile-concept-page .wp-menu-item a,
    body.wp-profile-concept-page .wp-menu-item summary {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    body.wp-profile-concept-page .wp-menu-item .wp-menu-direct-link {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    body.wp-profile-concept-page .wp-play-btn {
        margin-top: 6px;
        margin-bottom: 8px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    body.wp-profile-concept-page .wp-sidebar-weather {
        min-height: 38px;
        margin-bottom: 5px;
    }

    .wp-profile-concept-topbar {
        min-height: 55px;
        flex-basis: 55px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .wp-character-stage {
        gap: 12px 16px;
        margin-top: -26px;
        padding: 25px 22px 7px;
    }

    .wp-character-widget {
        height: clamp(196px, 25vh, 202px);
        min-height: 196px;
    }

    .wp-character-widget > .wp-character-widget-portrait {
        --wp-character-portrait-size: clamp(166px, 22vh, 184px);
    }

    .wp-character-widget > .wp-character-widget-copy {
        left: clamp(210px, 18.5vw, 245px);
        gap: 5px;
    }

    .wp-character-widget-copy h1 {
        font-size: clamp(1.5rem, 2vw, 1.9rem);
    }

    .wp-character-widget-role {
        --profile-badge-width: 115px;
        --profile-badge-height: 31px;
    }

    .wp-character-widget-role.wp-character-widget-school-year {
        --profile-badge-width: 87px;
    }

    .wp-character-widget-motto {
        min-height: 27px;
    }

    .wp-character-widget > .wp-profile-music {
        width: clamp(235px, 22vw, 290px);
        min-height: 0;
        padding: 12px 16px 10px;
    }

    .wp-profile-music h2 {
        margin-bottom: 5px;
        padding-bottom: 5px;
    }

    .wp-profile-section-tabs {
        min-height: 36px;
        padding: 2px 20px 0 28px;
    }

    .wp-profile-sections {
        height: 464px;
    }

    .wp-profile-section-tabs button,
    .wp-profile-section-tabs button:first-child {
        min-height: 33px;
    }

    .wp-profile-section-tabs > button {
        min-width: 0;
        padding-right: 17px;
        padding-left: 17px;
    }

    .wp-profile-section-tabs > button:first-child {
        min-width: 0;
    }

    .wp-profile-dossier-menu {
        min-width: 0;
    }

    .wp-profile-sections {
        --wp-profile-panel-gap: 10px;
    }

    .wp-profile-section-content {
        padding: var(--wp-profile-panel-gap) 4px 9px 2px;
    }

    .wp-profile-information-dossier {
        --wp-dossier-header-min: 55px;
        padding: var(--wp-dossier-head-space) 50px 24px;
    }

    .wp-profile-information-dossier-header {
        padding-bottom: 9px;
    }

    .wp-profile-information-dossier-header h2 {
        font-size: 18px;
    }

    .wp-profile-information-dossier-header p {
        margin-top: 5px;
        font-size: 8px;
    }

    .wp-profile-information-column {
        padding-top: 14px;
    }

    .wp-profile-information-column h3 {
        margin-bottom: 4px;
        padding-bottom: 9px;
    }

    .wp-profile-information-column h3 {
        min-height: 27px;
        margin-bottom: 4px;
        padding-bottom: 10px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > div {
        padding-top: 0;
        padding-bottom: 8px;
    }

    .wp-profile-information-wand-list {
        margin-top: 8px;
    }

    .wp-profile-information-wand-list > div {
        min-height: 42px;
        padding-top: 4px;
        padding-bottom: 9px;
    }

    .wp-profile-detail-card {
        padding: 14px 18px;
    }

    .wp-profile-detail-card > header {
        margin-bottom: 9px;
        padding-bottom: 7px;
    }

    .wp-profile-board-panel {
        --wp-board-top-edge: 0px;
        column-gap: 16px;
        row-gap: 0;
    }

    .wp-profile-relations {
        height: 100%;
        padding-top: 14px;
        padding-bottom: 9px;
    }

    .wp-profile-wand {
        height: 175px;
        min-height: 175px;
        padding-top: 10px;
        padding-bottom: 7px;
    }

    .wp-profile-wand h2 {
        margin-bottom: 5px;
        padding-bottom: 5px;
    }

    .wp-profile-wand-image {
        height: 46px;
        margin-bottom: 2px;
    }

    .wp-profile-wand-image img {
        height: 60px;
    }

    .wp-profile-wand-details {
        gap: 1px;
    }

    .wp-profile-wand-details div {
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .wp-wall-composer {
        height: 90px;
        min-height: 80px;
        padding-top: 8px;
        padding-bottom: 29px;
    }

    .wp-wall-feed {
        max-height: none;
        margin-top: 0;
    }

    .wp-profile-stats-widget {
        padding: 10px 10px 12px;
    }

    .wp-profile-stats-header {
        min-height: 29px;
        margin-bottom: 6px;
        padding-bottom: 5px;
    }

    .wp-profile-stats-grid {
        gap: 5px 4px;
    }

    .wp-profile-stat h3 {
        min-height: 18px;
        margin-bottom: 2px;
    }

    .wp-profile-stat-visual {
        width: min(50px, 100%);
    }

    .wp-profile-concept-main > .wp-page-footer {
        min-height: 56px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media (max-width: 980px) {
    .wp-profile-concept-main {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    .wp-profile-concept-main > .wp-page-footer {
        margin-top: auto;
    }

    .wp-character-stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-profile-sections {
        grid-column: 1;
    }

    .wp-profile-stats-widget {
        grid-column: 1;
        grid-row: auto;
    }

    .wp-character-widget.wp-character-widget--has-music {
        height: 370px;
        min-height: 370px;
    }

    .wp-character-widget--has-music > .wp-character-widget-portrait,
    .wp-character-widget--has-music > .wp-character-widget-copy {
        top: 40%;
    }

    .wp-character-widget--has-music > .wp-character-widget-copy {
        right: clamp(32px, 4vw, 64px);
    }

    .wp-character-widget > .wp-profile-music {
        top: auto;
        right: auto;
        bottom: 18px;
        left: 50%;
        width: min(300px, calc(100% - 38px));
        min-height: 0;
        padding: 12px 16px 10px;
        transform: translateX(-50%);
    }

    .wp-profile-music h2 {
        margin-bottom: 5px;
        padding-bottom: 5px;
        font-size: 11px;
    }

}

@media (max-width: 760px) {
    .wp-profile-sections:has(#wp-profile-panel-info:not([hidden])) {
        height: auto;
        min-height: 0;
    }

    .wp-profile-concept-topbar {
        min-height: 56px;
        flex: 0 0 56px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 7px 10px;
    }

    #wp-profile-panel-info {
        overflow: visible;
    }

    #wp-profile-panel-biography {
        overflow: visible;
    }

    .wp-profile-information-dossier {
        height: auto;
        min-height: 620px;
        overflow-y: auto;
        padding: var(--wp-dossier-head-space) 26px 34px;
        scrollbar-width: thin;
        scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
    }

    .wp-profile-information-dossier-header {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 10px;
    }

    .wp-profile-information-dossier-header h2 {
        font-size: 17px;
    }

    .wp-profile-information-dossier-grid {
        height: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .wp-profile-information-master-divider {
        display: none;
    }

    .wp-profile-information-column {
        overflow: visible;
        padding-right: 4px;
        padding-left: 4px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > div {
        grid-template-columns: minmax(126px, 0.9fr) minmax(0, 1.1fr);
    }

    .wp-profile-information-wand {
        min-height: 300px;
    }

    .wp-profile-information-wand-figure {
        right: -8%;
        bottom: -8%;
        width: 95%;
        height: 64%;
    }

    .wp-profile-concept-brand {
        gap: 6px;
    }

    .wp-profile-concept-brand > img {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .wp-profile-concept-brand > span {
        font-size: clamp(9px, 2.8vw, 14px);
        letter-spacing: 0.35px;
    }

    .wp-profile-back {
        width: 18px;
        flex-basis: 18px;
    }

    .wp-profile-back svg {
        width: 18px;
        height: 18px;
    }

    .wp-profile-concept-topbar .wp-top-actions {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .wp-character-stage {
        margin-top: -22px;
        padding: 29px 16px 16px;
    }

    .wp-profile-sections {
        height: auto;
        min-height: 300px;
    }

    .wp-profile-section-content {
        overflow: visible;
        padding-right: 16px;
        padding-left: 16px;
    }

    .wp-profile-section-tabs::before {
        right: 0;
        left: 0;
    }

    .wp-profile-detail-card {
        min-height: 300px;
    }

    .wp-profile-section-tabs {
        overflow-x: auto;
        padding-right: 14px;
        padding-left: 0;
        scrollbar-width: thin;
        scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
    }

    .wp-profile-section-tabs button {
        min-width: 116px;
        font-size: 10px;
    }

    #wp-profile-tab-settings {
        margin-left: 0;
    }

    .wp-profile-stats-widget {
        padding-right: 16px;
        padding-left: 16px;
    }

    .wp-profile-board-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-profile-side-stack {
        left: 0;
        width: 100%;
        height: auto;
        grid-column: 1;
        grid-row: auto;
        margin: -18px 0 12px;
        padding: 10px 4px 5px;
        transform: none;
    }

    .wp-profile-relations {
        height: auto;
        min-height: 220px;
    }

    .wp-profile-wand {
        min-height: 180px;
    }

    .wp-profile-information-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-profile-information-layout {
        height: auto;
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-profile-wand--information {
        min-height: 180px;
    }

    .wp-profile-information-list > .wp-profile-information-wide {
        grid-column: auto;
    }

    .wp-profile-dossier-columns,
    .wp-profile-dossier-license-grid,
    .wp-profile-dossier-items,
    .wp-profile-dossier-meta,
    .wp-profile-settings-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-profile-settings-biography {
        grid-column: auto;
        grid-row: auto;
    }

    .wp-profile-settings-media-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-profile-settings-media-controls > div {
        flex-wrap: wrap;
    }

    .wp-wall-composer {
        width: 100%;
        max-width: none;
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        transform: translateY(-12px);
    }

    .wp-wall-stream {
        height: auto;
        max-height: min(64dvh, 520px);
        grid-column: 1;
        grid-row: auto;
    }

    .wp-wall-feed {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: min(52dvh, 420px);
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
    }

    .wp-character-widget > .wp-character-widget-portrait {
        --wp-character-portrait-size: 132px;
        left: 18px;
    }

    .wp-character-widget {
        height: 220px;
        min-height: 220px;
    }

    .wp-character-widget.wp-character-widget--has-music {
        height: 350px;
        min-height: 350px;
    }

    .wp-character-widget--has-music > .wp-character-widget-portrait,
    .wp-character-widget--has-music > .wp-character-widget-copy {
        top: 40%;
    }

    .wp-character-widget > .wp-character-widget-copy {
        right: 18px;
        left: 150px;
        gap: 5px;
    }

    .wp-character-widget-copy h1 {
        font-size: clamp(1.2rem, 4vw, 1.55rem);
    }

    .wp-character-widget-role {
        --profile-badge-width: 104px;
        --profile-badge-height: 29px;
        margin-left: 0;
    }

    .wp-character-widget-role.wp-character-widget-school-year {
        --profile-badge-width: 79px;
    }

    .wp-character-widget-badges {
        gap: 5px;
        margin-left: -6px;
    }

    .wp-character-widget-role > span {
        font-size: 0.82rem;
    }

    .wp-character-widget-motto em {
        font-size: 0.8rem;
    }

}

@media (max-width: 520px) {
    .wp-profile-stats-grid {
        grid-template-columns: repeat(3, minmax(64px, 1fr));
        gap: 14px 10px;
    }

    .wp-profile-stat h3 {
        font-size: 9px;
    }
}

@media (max-width: 560px) {
    .wp-character-widget {
        height: 320px;
        min-height: 320px;
    }

    .wp-character-widget.wp-character-widget--has-music {
        height: 430px;
        min-height: 430px;
    }

    .wp-character-widget > .wp-character-widget-portrait {
        --wp-character-portrait-size: 118px;
        top: 92px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .wp-character-widget--has-music > .wp-character-widget-portrait {
        top: 92px;
    }

    .wp-character-widget > .wp-character-widget-copy {
        top: 178px;
        right: 14px;
        left: 14px;
        align-items: center;
        text-align: center;
        transform: none;
    }

    .wp-character-widget--has-music > .wp-character-widget-copy {
        top: 178px;
    }

    .wp-character-widget-role {
        margin-left: 0;
    }

    .wp-character-widget-badges {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
    }

    .wp-character-widget-motto {
        max-width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .wp-wall-mention-menu {
        right: 14px;
        left: 62px;
        width: auto;
    }

    .wp-wall-image-modal {
        padding: 24px 12px;
    }

    .wp-wall-image-modal-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 48px);
    }

    .wp-wall-image-modal-inner {
        max-height: calc(100dvh - 48px);
        padding: 20px 18px 22px;
    }

    .wp-wall-image-modal-head {
        min-height: 42px;
        padding-right: 38px;
        padding-left: 38px;
    }

    .wp-wall-image-modal-content img {
        max-height: calc(100dvh - 128px);
    }
}

@media (min-width: 761px) and (max-width: 1180px) {
    .wp-profile-information-dossier {
        padding-right: 28px;
        padding-left: 28px;
    }

    .wp-profile-information-dossier-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .wp-profile-story-card {
        min-height: 140px;
        padding: 16px 17px 17px;
    }
}

@media (max-width: 720px) {
    .wp-profile-story {
        height: auto;
        min-height: 620px;
        padding: 20px 18px 24px;
    }

    .wp-profile-story-scroll {
        height: auto;
        overflow: visible;
        padding: 0;
    }

    .wp-profile-story-biography {
        --story-heading-left: 2px;
        --story-copy-left: 68px;
        min-height: auto;
        margin-bottom: 14px;
        padding: 22px 18px 21px;
    }

    .wp-profile-story-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .wp-profile-story-card {
        grid-column: auto;
        min-height: auto;
    }
}

@media (min-width: 721px) and (max-width: 1180px) {
    .wp-profile-birth-content {
        --zodiac-slot-width: 70px;
        --zodiac-size: 36px;
        width: max-content;
        max-width: 100%;
        margin-left: 0;
        padding: 8px 9px 9px;
        column-gap: 8px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > .wp-profile-information-birth-row {
        min-height: 108px;
    }

    .wp-profile-zodiac-glyph {
        font-size: 29px;
    }

    .wp-profile-zodiac-symbol {
        width: 21px;
        height: 21px;
    }

    .wp-profile-zodiac-slot {
        row-gap: 2px;
    }

    .wp-profile-zodiac-copy {
        gap: 2px;
    }

    .wp-profile-zodiac-copy small {
        font-size: 7.8px;
    }

    .wp-profile-zodiac-copy strong {
        font-size: 9.8px;
    }

    .wp-profile-birth-divider {
        height: 34px;
        min-height: 0;
    }
}

@media (min-width: 761px) {
    #wp-profile-panel-info .wp-profile-information-dossier {
        height: calc(100% + 25px);
    }
}

@media (max-width: 560px) {
    .wp-profile-story {
        min-height: 560px;
        padding: 18px 14px 20px;
    }

    .wp-profile-story-biography {
        --story-heading-left: -4px;
        --story-copy-left: 52px;
        padding: 20px 16px 19px;
    }

    .wp-profile-story-heading h2 {
        font-size: 15px;
    }

    .wp-profile-story-heading h3 {
        font-size: 12px;
    }

    .wp-profile-story-heading {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
    }

    .wp-profile-story-heading-icon {
        width: 48px;
        height: 48px;
    }

    .wp-profile-story-heading-symbol {
        width: 23px;
        height: 23px;
    }

    .wp-profile-story-heading-symbol--book {
        width: 33px;
        height: 33px;
    }

    .wp-profile-story-heading-symbol--character {
        width: 29px;
        height: 29px;
    }

    .wp-profile-story-heading-divider {
        width: 88px;
    }

    .wp-profile-story-card {
        --story-heading-left: -6px;
        --story-copy-left: 50px;
    }

    .wp-profile-story-copy {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .wp-profile-story-card {
        padding: 15px 14px 16px;
    }

    .wp-profile-birth-content {
        --zodiac-slot-width: 58px;
        --zodiac-size: 32px;
        width: max-content;
        max-width: 100%;
        margin-left: 0;
        padding: 8px 8px 9px;
        column-gap: 6px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > .wp-profile-information-birth-row {
        min-height: 102px;
        column-gap: 9px;
        row-gap: 5px;
        padding-top: 4px;
    }

    .wp-profile-zodiac-glyph {
        font-size: 26px;
    }

    .wp-profile-zodiac-copy {
        gap: 2px;
    }

    .wp-profile-zodiac-copy small {
        font-size: 7.1px;
    }

    .wp-profile-zodiac-copy strong {
        font-size: 8.7px;
    }

    .wp-profile-birth-divider {
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wp-profile-section-tabs button.is-active::after {
        animation: none;
    }
}

@media (max-width: 480px) {
    .wp-profile-concept-brand > span {
        display: none;
    }
}

@media (min-width: 1181px) {
    .wp-profile-information-list.wp-profile-information-list--dossier > div:not(.wp-profile-information-birth-row) {
        grid-template-columns: clamp(190px, 16vw, 215px) minmax(0, 1fr);
        gap: clamp(18px, 1.6vw, 22px);
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > div::after {
        right: 18px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > .wp-profile-information-birth-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .wp-profile-birth-content {
        margin-left: 0;
    }

    .wp-profile-zodiac-copy strong {
        width: 100%;
        color: rgba(243, 234, 212, 0.94);
        font-size: 10.2px;
        font-weight: 400;
        line-height: 1.05;
        text-align: center;
        white-space: nowrap;
        overflow: visible;
        overflow-wrap: normal;
        text-overflow: clip;
    }

    .wp-profile-birth-divider {
        width: 1px;
        height: 58px;
        min-height: 0;
        align-self: center;
        margin: 0;
        background: rgba(135, 99, 52, 0.42);
        box-shadow: 0 0 2px rgba(216, 169, 78, 0.08);
    }

    .wp-profile-information-wand-list > div {
        grid-template-columns: minmax(120px, 0.87fr) minmax(0, 1.13fr);
        gap: 20px;
        padding-left: 12px;
    }
}

@media (min-width: 721px) and (max-width: 1180px) {
    .wp-profile-information-list.wp-profile-information-list--dossier > div:not(.wp-profile-information-birth-row) {
        grid-template-columns: clamp(168px, 17vw, 190px) minmax(0, 1fr);
        gap: 16px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > div::after {
        right: 14px;
    }

    .wp-profile-birth-content {
        margin-left: 0;
    }

    .wp-profile-information-wand-list > div {
        grid-template-columns: minmax(112px, 0.87fr) minmax(0, 1.13fr);
        gap: 18px;
        padding-left: 12px;
    }
}

#wp-profile-panel-biography .wp-profile-story-card--public,
#wp-profile-panel-biography .wp-profile-story-card--secrets {
    grid-column: 1 / -1;
    min-height: 115px;
}

@media (max-width: 760px) {
    .wp-profile-sections:has(#wp-profile-panel-biography:not([hidden])) {
        height: auto;
        min-height: 0;
    }

    .wp-profile-section-content:has(#wp-profile-panel-biography:not([hidden])) {
        padding-right: 16px;
        padding-left: 16px;
    }

    #wp-profile-panel-biography .wp-profile-story {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #wp-profile-panel-biography .wp-profile-story-biography {
        min-height: 250px;
        padding: 24px 20px;
    }

    #wp-profile-panel-biography .wp-profile-story-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    #wp-profile-panel-biography .wp-profile-story-grid > .wp-profile-story-card {
        grid-column: 1;
        min-height: auto;
    }
}

.wp-profile-sections:has(#wp-profile-panel-photos:not([hidden])) {
    --wp-photo-panel-min-height: calc(clamp(580px, 66vh, 650px) - 52px);
    height: auto;
    min-height: clamp(580px, 66vh, 650px);
}

.wp-profile-section-content:has(#wp-profile-panel-photos:not([hidden])) {
    height: auto;
    min-height: var(--wp-photo-panel-min-height);
    flex: 1 1 auto;
    overflow: visible;
}

#wp-profile-panel-photos {
    width: 100%;
    height: auto;
    min-height: var(--wp-photo-panel-min-height);
    padding: 0 3px 3px;
    overflow: visible;
}

.wp-profile-photos-panel:not([hidden]) {
    width: 100%;
    height: auto;
    min-height: var(--wp-photo-panel-min-height);
    display: flex;
}

.wp-profile-official-bacheca {
    width: 100%;
    height: auto;
    min-height: var(--wp-photo-panel-min-height);
    display: flex;
}

.wp-profile-official-bacheca > .wp-bacheca,
.wp-profile-official-bacheca > .wp-bacheca--photo-gallery {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: var(--wp-photo-panel-min-height);
    box-sizing: border-box;
}

.wp-profile-official-bacheca > .wp-bacheca--photo-gallery {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 17px 18px;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-head {
    width: 100%;
    min-height: 54px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 6px 7px 0;
    padding: 0;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-heading-label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.wp-bacheca--photo-gallery .wp-bacheca__title {
    margin: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: clamp(15px, 1.18vw, 18px);
    font-weight: 500;
    letter-spacing: 0.75px;
    line-height: 1.05;
    text-align: left;
    text-transform: uppercase;
    opacity: 1;
    filter: none;
    text-shadow: none;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-heading-divider {
    width: 290px;
    max-width: 100%;
    height: 7px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-count {
    justify-self: end;
    margin: 0;
    padding-right: 18px;
    color: rgba(227, 216, 184, 0.82);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-count-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    object-fit: contain;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-filters {
    width: min(290px, calc(100% - 80px));
    min-height: 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    margin: 0 7px 8px 73px;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-filters button {
    width: 100%;
    min-width: 0;
    height: 27px;
    padding: 0 9px;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    align-self: stretch;
    box-sizing: border-box;
    margin: 0 7px 10px;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__card {
    width: 100%;
    max-width: none;
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    margin: 0;
    padding: 11px clamp(30px, 3.6vw, 52px);
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__fake,
.wp-bacheca--photo-gallery .wp-bacheca-composer__pill {
    width: 100%;
    min-width: 0;
}

.wp-bacheca--photo-gallery .wp-bacheca__grid {
    width: auto;
    max-width: none;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: start;
    align-content: start;
    flex: 0 0 auto;
    align-self: stretch;
    gap: 7px;
    box-sizing: border-box;
    margin: 0 7px;
    padding: 0 0 14px;
    overflow: visible;
    scrollbar-width: none;
}

.wp-bacheca--photo-gallery .wp-bacheca__grid::-webkit-scrollbar {
    display: none;
}

.wp-bacheca--photo-gallery .wp-bacheca-tile {
    width: 100%;
    min-width: 0;
    aspect-ratio: 10 / 11;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .wp-bacheca--photo-gallery .wp-bacheca__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .wp-bacheca--photo-gallery .wp-bacheca__grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 760px) {
    .wp-profile-section-content:has(#wp-profile-panel-photos:not([hidden])) {
        padding-right: 16px;
        padding-left: 16px;
    }

    #wp-profile-panel-photos {
        padding: 0;
    }

    .wp-profile-official-bacheca > .wp-bacheca--photo-gallery {
        padding: 11px 10px 14px;
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-head {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        min-height: 50px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca__title {
        font-size: 16px;
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-heading-divider {
        width: min(290px, 100%);
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-filters {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-right: 0;
        margin-left: 0;
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-filters button {
        width: 100%;
        min-width: 0;
    }

}

.wp-bacheca--photo-gallery {
    --gallery-inline-gutter: 7px;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer {
    width: auto;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
    margin-inline: var(--gallery-inline-gutter);
    margin-top: 0;
    margin-bottom: 10px;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer {
    flex: 0 0 auto;
    margin-inline: var(--gallery-inline-gutter);
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__card {
    width: 100%;
    max-width: none;
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    margin: 0;
    padding: 11px clamp(30px, 3.6vw, 52px);
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__fake,
.wp-bacheca--photo-gallery .wp-bacheca-composer__pill {
    width: 100%;
    min-width: 0;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-heading-label {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-heading-divider {
    margin-top: 5px;
}

.wp-bacheca--photo-gallery .wp-photo-gallery-filters {
    margin-top: -7px;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts {
    width: auto;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button i {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: 17px;
    line-height: 1;
    text-align: center;
    transform: none;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button i::before {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
}

.wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button svg {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
}

.wp-profile-section-content:has(#wp-profile-panel-photos:not([hidden])) {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    overflow: visible;
}

#wp-profile-panel-photos {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

.wp-profile-photos-panel:not([hidden]),
.wp-profile-official-bacheca {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
}

@media (min-width: 981px) {
    .wp-profile-concept-main:has(#wp-profile-panel-photos:not([hidden])) {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    .wp-profile-concept-main:has(#wp-profile-panel-photos:not([hidden])) > .wp-character-stage {
        width: 100%;
        min-height: 0;
        flex: 1 1 auto;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        align-items: stretch;
        padding-bottom: 2px;
    }

    .wp-profile-concept-main:has(#wp-profile-panel-photos:not([hidden])) > .wp-page-footer {
        flex: 0 0 auto;
        margin-top: 0;
    }

    .wp-profile-sections:has(#wp-profile-panel-photos:not([hidden])) {
        --wp-photo-panel-min-height: 0px;
        height: 100%;
        min-height: 0;
        align-self: stretch;
        display: flex;
        flex-direction: column;
    }

    .wp-profile-section-content:has(#wp-profile-panel-photos:not([hidden])) {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    #wp-profile-panel-photos {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .wp-profile-official-bacheca {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .wp-profile-official-bacheca > .wp-bacheca--photo-gallery {
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
    }
}

@media (min-width: 981px) and (min-height: 600px) {
    body .wp-character-widget {
        height: clamp(300px, 36vh, 330px);
        min-height: 300px;
    }
    body .wp-character-widget > .wp-character-widget-portrait {
        --wp-character-portrait-size: clamp(226px, 29vh, 244px);
    }
    body .wp-character-widget > .wp-character-widget-copy {
        left: clamp(262px, 22vw, 300px);
    }
}

@media (min-width: 761px) {
    body .wp-profile-section-tabs button {
        font-size: clamp(12px, 0.9vw, 13.5px);
    }
    body .wp-profile-section-tabs .wp-profile-dossier-options button,
    body .wp-profile-settings-form > footer button,
    body .wp-profile-settings-media-controls button,
    body .wp-profile-stats-save,
    body .wp-relationship-editor-actions button,
    body .wp-relationship-add,
    body .wp-wall-composer-actions button {
        font-size: 11px;
    }
    body .wp-profile-settings-form label > span,
    body .wp-profile-settings-form label > small,
    body .wp-profile-settings-media > p,
    body .wp-profile-settings-zoom output,
    body .wp-profile-settings-form > footer p,
    body .wp-profile-music-times {
        font-size: 11px;
    }
    body .wp-profile-stat h3 {
        font-size: clamp(10px, 0.72vw, 12px);
    }
    body .wp-profile-relations h2,
    body .wp-profile-wand h2 {
        font-size: clamp(10px, 0.75vw, 12px);
    }
    body .wp-profile-stat-bonus,
    body .wp-profile-stat-value small,
    body .wp-profile-stats-points {
        font-size: clamp(9.5px, 0.65vw, 11px);
    }
    body .wp-profile-zodiac-copy small {
        font-size: 10px;
    }
    body .wp-profile-zodiac-copy strong {
        font-size: 11px;
    }
    body .wp-profile-dossier-meta small,
    body .wp-profile-dossier-table th,
    body .wp-profile-relation-copy small,
    body .wp-relationship-field em,
    body .wp-relationship-field small,
    body .wp-wall-post-header time,
    body .wp-wall-composer-feedback,
    body .wp-wall-comment-form > p {
        font-size: 10.5px;
    }
    body .wp-profile-information-dossier-header p,
    body .wp-profile-dossier-card > .wp-profile-dossier-page-header p,
    body .wp-profile-wand-details dt,
    body .wp-profile-wand-details dd,
    body .wp-relationship-field,
    body .wp-relationship-feedback,
    body .wp-wall-comment-actions,
    body .wp-profile-stat-adjust {
        font-size: clamp(10.5px, 0.8vw, 12px);
    }

    body .wp-profile-information-list.wp-profile-information-list--dossier dt,
    body .wp-profile-information-wand-list dt {
        font-size: clamp(11px, 0.85vw, 13px);
    }
}

@media (min-width: 981px) {
    .wp-profile-information-column.wp-profile-information-personal {
        display: flex;
        flex-direction: column;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier {
        grid-auto-rows: 1fr;
        flex: 1 1 auto;
        min-height: 0;
    }
}

@media (min-width: 761px) and (max-width: 980px) {
    .wp-profile-sections:has(#wp-profile-panel-info:not([hidden])) {
        height: auto;
        min-height: 0;
    }

    .wp-profile-information-dossier {
        height: auto;
        min-height: 620px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
    }

    .wp-profile-information-dossier-grid {
        height: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .wp-profile-information-master-divider {
        display: none;
    }

    .wp-profile-information-column {
        overflow: visible;
    }
}

.wp-zodiac-modal__preview-age {
    margin: 8px auto 20px;
    max-width: 48ch;
    color: #e0cfa4;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.wp-profile-birth-date {
    display: inline;
    margin-left: 10px;
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-style: normal;
    letter-spacing: .01em;
    text-transform: none;
}

.wp-profile-birth-date i {
    color: rgba(227, 216, 184, 0.6);
    font-size: 0.82rem;
    font-style: italic;
}


/* Cellulari stretti (<=560px): l'hero impilato esisteva gia', ma i tre badge
   andavano a capo uno sotto l'altro e spingevano il motto fuori dalla cornice.
   Qui i badge stanno su una riga sola, un po' piu' piccoli, e la card si
   accorcia di conseguenza. Solo mobile: il desktop non viene toccato. */
@media (max-width: 560px) {
    .wp-character-widget {
        height: auto;
        min-height: 300px;
        display: flow-root;
        padding-bottom: 37px;
    }

    .wp-character-widget.wp-character-widget--has-music {
        height: auto;
        padding-bottom: calc(13px + min(300px, 100% - 38px) * 158 / 360);
    }

    .wp-character-widget > .wp-character-widget-copy,
    .wp-character-widget--has-music > .wp-character-widget-copy {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin: 168px 14px 0;
        gap: 6px;
    }

    .wp-character-widget-badges {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .wp-character-widget-role {
        --profile-badge-width: 94px;
        --profile-badge-height: 27px;
    }

    .wp-character-widget-role.wp-character-widget-school-year {
        --profile-badge-width: 72px;
    }

    .wp-character-widget-role > span {
        font-size: 0.76rem;
    }

    .wp-character-widget-motto {
        max-width: calc(100% - 8px);
    }

    .wp-character-widget-motto em {
        font-size: 0.78rem;
    }
}

@media (max-width: 340px) {
    .wp-character-widget-role {
        --profile-badge-width: 82px;
    }

    .wp-character-widget-role.wp-character-widget-school-year {
        --profile-badge-width: 62px;
    }

    .wp-character-widget-role > span {
        font-size: 0.7rem;
    }
}


/* Tablet e cellulari (<=980px): la barra delle sezioni va a capo invece di
   uscire dallo schermo (Dossier e Impostazioni erano irraggiungibili sotto i
   980px, e sotto i 760px il menu Dossier finiva fuori schermo perche' lo
   scroll orizzontale si azzerava all'apertura). Anche i badge dell'hero
   possono andare a capo invece di essere tagliati. */
@media (max-width: 980px) {
    .wp-profile-section-tabs {
        overflow: visible;
        flex-wrap: wrap;
    }

    .wp-character-widget-badges {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Cellulari (<=560px): la barra delle sezioni sta su due righe, tutte le voci
   visibili senza scorrere (Bacheca, Informazioni, Storia, Foto / Statistiche,
   Dossier, Impostazioni a destra), come nel concept mobile. La barra viene
   rientrata di 8px per lato cosi' la parte visibile della cornice (la PNG ha
   21px trasparenti a sinistra e 1px a destra) coincide con i bordi dei widget
   sottostanti. La cornice viene tagliata anche sopra e sotto (25/21px), cosi'
   sulle due righe si allunga solo il filetto laterale e le volute agli angoli
   restano intatte. Un filetto separa le due righe. Il menu Dossier resta la
   tendina assoluta sotto la voce, come sul desktop (la barra non scorre piu'). */
@media (max-width: 560px) {
    .wp-profile-section-tabs,
    .wp-profile-sections.is-dossier-open .wp-profile-section-tabs {
        min-height: 0;
        flex-wrap: wrap;
        justify-content: space-between;
        overflow: visible;
        width: auto;
        margin: 0 8px;
        padding: 7px 24px 6px;
        row-gap: 0;
    }

    .wp-profile-section-tabs::before {
        top: -6px;
        right: -1px;
        bottom: -3px;
        left: -21px;
        border-width: 25px 70px 21px;
        border-image-slice: 25 70 21 fill;
        border-image-width: 25px 70px 21px;
    }

    .wp-profile-section-tabs::after {
        position: absolute;
        top: 45px;
        right: 12px;
        left: 12px;
        z-index: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.28) 12%, rgba(201, 168, 76, 0.28) 88%, transparent);
        content: '';
        pointer-events: none;
    }

    .wp-profile-section-tabs > button,
    .wp-profile-section-tabs > button:first-child,
    .wp-profile-section-tabs .wp-profile-dossier-trigger {
        min-width: 0;
        min-height: 38px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 9.5px;
        letter-spacing: 0.35px;
        white-space: nowrap;
    }

    .wp-profile-section-tabs button::after {
        right: 4px;
        left: 4px;
    }

    .wp-profile-section-tabs .wp-profile-dossier-trigger {
        gap: 5px;
    }

    #wp-profile-tab-settings {
        gap: 6px;
        padding-right: 7px;
        padding-left: 7px;
    }

    #wp-profile-tab-settings .wp-profile-settings-icon {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }
}

/* Sotto i 380px la seconda riga (Statistiche, Dossier, Impostazioni) non
   ci sta: Impostazioni resta col solo ingranaggio. */
@media (max-width: 380px) {
    #wp-profile-tab-settings > span {
        display: none;
    }

    #wp-profile-tab-settings .wp-profile-settings-icon {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }
}

@media (max-width: 340px) {
    .wp-profile-section-tabs,
    .wp-profile-sections.is-dossier-open .wp-profile-section-tabs {
        padding-right: 20px;
        padding-left: 20px;
    }

    .wp-profile-section-tabs > button,
    .wp-profile-section-tabs > button:first-child,
    .wp-profile-section-tabs .wp-profile-dossier-trigger,
    #wp-profile-tab-settings {
        padding-right: 5px;
        padding-left: 5px;
        font-size: 9px;
        letter-spacing: 0.2px;
    }
}


/* Cellulari (<=560px): nella Bacheca l'ordine del concept mobile: compositore,
   Relazioni (scheda compatta ad altezza automatica), poi i messaggi. Il
   contenitore .wp-wall-stream (compositore + messaggi) viene sciolto con
   display: contents cosi' Relazioni puo' infilarsi tra i due; quando si apre
   il gestore delle relazioni la regola .is-managing-relationships, piu'
   specifica, continua a nasconderlo. I blocchi hanno gli stessi margini
   laterali e la pagina scorre per intero, senza scorrimenti interni. */
@media (max-width: 560px) {
    .wp-profile-board-panel {
        row-gap: 12px;
    }

    .wp-wall-stream {
        display: contents;
    }

    .wp-wall-composer {
        order: 1;
        transform: none;
    }

    .wp-profile-side-stack {
        order: 2;
        margin: 0;
        padding: 8px 4px 6px;
    }

    .wp-wall-feed {
        order: 3;
        max-height: none;
        overflow: visible;
    }

    .wp-profile-relations {
        height: auto;
        min-height: 0;
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .wp-profile-relations-list {
        flex: 0 1 auto;
        max-height: 190px;
    }

    .wp-profile-relations-empty {
        padding: 10px 8px;
    }

    .wp-profile-relations-header {
        grid-template-columns: minmax(0, 1fr) 28px;
        padding-right: 2px;
        padding-left: 4px;
    }

    .wp-profile-relations-header h2 {
        grid-column: 1;
        font-size: 11px;
        letter-spacing: 0.6px;
        text-align: left;
    }

    .wp-profile-relations-edit {
        grid-column: 2;
    }
}


/* Cellulari (<=560px): la riga dei segni zodiacali nelle Informazioni si
   adatta alla larghezza disponibile invece di essere tagliata. */
@media (max-width: 560px) {
    .wp-profile-birth-content {
        --zodiac-size: 30px;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
        padding: 7px 5px 8px;
        column-gap: 4px;
    }

    .wp-profile-zodiac-copy strong {
        font-size: 8.6px;
        overflow-wrap: anywhere;
        white-space: normal;
    }
}


/* Cellulari (<=560px): meno margini a cascata dentro le sezioni (contenuto +
   dossier) e colonna etichetta piu' stretta nel dossier, cosi' i valori non
   vanno a capo lettera per lettera. */
@media (max-width: 560px) {
    .wp-profile-section-content {
        padding-right: 8px;
        padding-left: 8px;
    }

    .wp-profile-information-dossier {
        padding-right: 18px;
        padding-left: 18px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > div {
        grid-template-columns: minmax(112px, 0.9fr) minmax(0, 1.1fr);
        gap: 10px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier dt {
        gap: 7px;
        font-size: 8.5px;
        letter-spacing: 0.25px;
        overflow-wrap: anywhere;
    }
}


/* Galleria fotografica, cellulari: il compositore "Allega un ricordo" resta su
   una riga come sul desktop; l'avatar, che apre lo stesso caricamento del campo,
   sparisce per lasciare al testo lo spazio di stare su una riga. La galleria
   vuota non tiene piu' l'altezza minima pensata per il desktop. */
@media (max-width: 560px) {
    .wp-profile-sections:has(#wp-profile-panel-photos:not([hidden])) {
        --wp-photo-panel-min-height: 260px;
        min-height: 0;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__card {
        min-height: 70px;
        gap: 10px;
        padding: 11px 28px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__avatar {
        display: none;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__pill {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts {
        gap: 8px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca__empty {
        padding: 2rem 1rem;
    }
}

@media (max-width: 340px) {
    .wp-bacheca--photo-gallery .wp-bacheca-composer__card {
        padding-right: 24px;
        padding-left: 24px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__pill {
        padding: 0 10px;
        font-size: 12px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

/* Gestione relazioni sui cellulari: la scheda resta ferma e opaca, con la
   pagina oscurata dietro; scorre solo il contenuto dentro la cornice, cosi'
   la cornice non se ne va con lo scroll. Pannelli senza altezze minime. */
@media (max-width: 680px) {
    .wp-relationship-manager {
        padding: 24px 18px 18px;
        overflow: hidden;
        background:
            radial-gradient(circle at 58% 4%, rgba(132, 90, 34, 0.1), transparent 40%),
            linear-gradient(118deg, #06090d, #080a0f 54%, #0c0a10);
        box-shadow:
            0 0 0 100vmax rgba(0, 0, 0, 0.74),
            0 12px 34px rgba(0, 0, 0, 0.45);
    }

    .wp-relationship-manager-heading {
        margin: 0 0 10px;
        padding: 4px 32px 0;
    }

    .wp-relationship-manager-heading h2 {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .wp-relationship-manager-heading p {
        margin: 3px 0 0;
        font-size: 11px;
    }

    .wp-relationship-manager-heading > button {
        top: 2px;
        right: 4px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .wp-relationship-manager-layout {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--wp-scroll-thumb) var(--wp-scroll-track);
    }

    .wp-relationship-manager-list-panel {
        min-height: 0;
        max-height: none;
        padding: 12px 12px 10px;
    }

    .wp-relationship-list {
        overflow: visible;
        padding-right: 0;
    }

    .wp-relationship-editor {
        min-height: 0;
        overflow: visible;
        padding: 12px 12px 14px;
    }
}

@media (max-width: 340px) {
    .wp-relationship-manager {
        padding: 22px 14px 14px;
    }

    .wp-relationship-manager-heading h2 {
        font-size: 14px;
    }
}

/* Cornici native per i cellulari (concept_profile_mobile): il menu delle sezioni
   usa profile-tabs-frame-mobile.webp, che porta gia' la riga di mezzo, quindi la
   scheda tiene le proporzioni della PNG e le voci stanno in una griglia 4x2:
   Bacheca Informazioni Storia Foto / Statistiche Dossier ... Impostazioni.
   Le relazioni usano profile-relations-frame-mobile.webp tagliata in 9 pezzi. */
@media (max-width: 560px) {
    .wp-profile-section-tabs,
    .wp-profile-sections.is-dossier-open .wp-profile-section-tabs {
        display: grid;
        grid-template-columns: repeat(4, auto);
        grid-template-rows: 1fr 1fr;
        justify-content: space-around;
        justify-items: center;
        align-items: stretch;
        aspect-ratio: 845 / 137;
        min-height: 58px;
        margin: 0 8px;
        padding: 0.7% 8% 1.1%;
        row-gap: 0;
        column-gap: 0;
        background: linear-gradient(180deg, rgba(7, 9, 14, 0.62), rgba(7, 8, 13, 0.32));
    }

    .wp-profile-section-tabs::before {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border: 0;
        border-image: none;
        background: url('../images/frames/profile-tabs-frame-mobile.webp') center / 100% 100% no-repeat;
    }

    .wp-profile-section-tabs::after {
        content: none;
    }

    .wp-profile-section-tabs > button,
    .wp-profile-section-tabs > button:first-child,
    .wp-profile-section-tabs .wp-profile-dossier-trigger {
        height: 100%;
        min-height: 0;
        padding: 0 5px;
        font-size: 9.5px;
        letter-spacing: 0.45px;
    }

    .wp-profile-section-tabs > button.is-active {
        background: none;
    }

    .wp-profile-section-tabs button::after {
        right: 3px;
        bottom: 3px;
        left: 3px;
    }

    .wp-profile-dossier-menu {
        grid-column: 2;
        justify-self: center;
    }

    #wp-profile-tab-settings {
        grid-column: 3 / -1;
        justify-self: end;
        margin: 0;
        padding: 0 2px 0 5px;
    }

    #wp-profile-tab-settings > span {
        display: inline;
    }

    #wp-profile-tab-settings .wp-profile-settings-icon {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    .wp-profile-relations::before {
        top: -7px;
        right: -2px;
        bottom: -4px;
        left: -2px;
        border-width: 28px 25px 26px;
        border-image-source: url('../images/frames/profile-relations-frame-mobile.webp');
        border-image-slice: 70 62 64;
        border-image-width: 28px 25px 26px;
    }

    .wp-profile-relations {
        padding-top: 12px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .wp-profile-section-tabs,
    .wp-profile-sections.is-dossier-open .wp-profile-section-tabs {
        min-width: 0;
    }

    .wp-profile-section-tabs:has(> #wp-profile-tab-archive) .wp-profile-dossier-menu,
    .wp-profile-section-tabs:has(> #wp-profile-tab-titles) .wp-profile-dossier-menu {
        grid-column: 3 / -1;
    }

    .wp-profile-section-tabs:is(:has(> #wp-profile-tab-archive):has(> #wp-profile-tab-titles), :has(> #wp-profile-tab-settings):is(:has(> #wp-profile-tab-archive), :has(> #wp-profile-tab-titles))) {
        grid-template-rows: 25.5px 26px 26px;
        aspect-ratio: auto;
        height: 83px;
        min-height: 0;
        padding-top: 2px;
        padding-bottom: 3.5px;
    }

    .wp-profile-section-tabs:is(:has(> #wp-profile-tab-archive):has(> #wp-profile-tab-titles), :has(> #wp-profile-tab-settings):is(:has(> #wp-profile-tab-archive), :has(> #wp-profile-tab-titles)))::before {
        background: none;
        border-style: solid;
        border-color: transparent;
        border-width: 35px 18px 17px;
        border-image: url('../images/frames/profile-tabs-frame-mobile.webp') 82 50 40 fill / 35px 18px 17px stretch;
    }

    .wp-profile-section-tabs:is(:has(> #wp-profile-tab-archive):has(> #wp-profile-tab-titles), :has(> #wp-profile-tab-settings):is(:has(> #wp-profile-tab-archive), :has(> #wp-profile-tab-titles)))::after {
        position: absolute;
        top: 53px;
        right: 4%;
        left: 4%;
        z-index: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgb(64, 47, 28) 6%, rgb(64, 47, 28) 94%, transparent);
        content: '';
        pointer-events: none;
    }

    .wp-profile-section-tabs:is(:has(> #wp-profile-tab-archive):has(> #wp-profile-tab-titles), :has(> #wp-profile-tab-settings):is(:has(> #wp-profile-tab-archive), :has(> #wp-profile-tab-titles))):has(> #wp-profile-tab-archive) > #wp-profile-tab-titles {
        grid-column: 3 / -1;
    }

    .wp-profile-section-tabs:is(:has(> #wp-profile-tab-archive):has(> #wp-profile-tab-titles), :has(> #wp-profile-tab-settings):is(:has(> #wp-profile-tab-archive), :has(> #wp-profile-tab-titles))) .wp-profile-dossier-menu {
        grid-row: 3;
        grid-column: 1 / 3;
    }

    .wp-profile-section-tabs:not(:has(> #wp-profile-tab-settings)):has(> #wp-profile-tab-archive):has(> #wp-profile-tab-titles) .wp-profile-dossier-menu {
        grid-column: 1 / -1;
    }

    .wp-profile-section-tabs:is(:has(> #wp-profile-tab-archive):has(> #wp-profile-tab-titles), :has(> #wp-profile-tab-settings):is(:has(> #wp-profile-tab-archive), :has(> #wp-profile-tab-titles))) > #wp-profile-tab-settings {
        grid-row: 3;
        grid-column: 3 / -1;
    }
}

@media (max-width: 380px) {
    .wp-profile-section-tabs:not(:has(> #wp-profile-tab-archive)):not(:has(> #wp-profile-tab-titles)) > #wp-profile-tab-settings > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (max-width: 340px) {
    .wp-profile-section-tabs > button,
    .wp-profile-section-tabs > button:first-child,
    .wp-profile-section-tabs .wp-profile-dossier-trigger {
        padding: 0 3px;
        font-size: 9px;
        letter-spacing: 0.25px;
    }
}

/* Dossier "Informazioni" sui cellulari (concept_mobile2): la cornice era
   disegnata a 120px per lato come sul desktop e su 318px di larghezza gli
   angoli si accavallavano; qui la cornice, lo stemma e il fregio in basso
   scendono al 60%. Titolo su una riga, voce "Informazioni" a sinistra con
   l'icona e i dati della bacchetta in coda alla stessa lista, separati da
   una stella come nel concept invece del titolo "Informazioni bacchetta". */
@media (max-width: 560px) {
    .wp-profile-information-dossier {
        --wp-dossier-crest-width: 95px;
        --wp-dossier-crest-height: 32px;
        --wp-dossier-header-min: 0px;
        padding: var(--wp-dossier-head-space) 20px 30px;
    }

    .wp-profile-information-dossier::before {
        border-width: 72px 72px 75px;
        border-image-width: 72px 72px 75px;
    }

    .wp-profile-information-dossier::after {
        background:
            url('../images/frames/profile-information-dossier-crest.webp') top center / var(--wp-dossier-crest-width) var(--wp-dossier-crest-height) no-repeat,
            url('../images/frames/profile-information-dossier-footer.webp') bottom center / auto 32px no-repeat;
    }

    .wp-profile-information-dossier-header {
        grid-template-columns: minmax(16px, 1fr) auto minmax(16px, 1fr);
        gap: 8px;
        padding: 6px 0 10px;
    }

    .wp-profile-information-dossier-header h2 {
        font-size: 15px;
        letter-spacing: 1.3px;
        white-space: nowrap;
    }

    .wp-profile-information-dossier-header p {
        margin-top: 5px;
        font-size: 7.5px;
        letter-spacing: 0.7px;
    }

    .wp-profile-information-dossier-grid {
        gap: 4px;
    }

    .wp-profile-information-column {
        padding: 10px 0 0;
    }

    .wp-profile-information-column h3 {
        justify-content: flex-start;
        gap: 9px;
        min-height: 0;
        margin-bottom: 3px;
        padding: 0 4px 10px 6px;
        font-size: 11px;
        letter-spacing: 0.9px;
    }

    .wp-profile-information-column h3 img {
        width: 22px;
        height: 22px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > div {
        min-height: 36px;
        padding-bottom: 6px;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier > .wp-profile-information-birth-row {
        min-height: 0;
    }

    .wp-profile-information-list.wp-profile-information-list--dossier dd {
        font-size: 12.5px;
    }

    .wp-profile-birth-date i {
        font-size: 10px;
        white-space: nowrap;
    }

    /* Bacchetta: niente titolo ne' figura, solo la stella-separatore e le righe
       allineate a quelle sopra (l'etichetta rientra dello spazio dell'icona). */
    .wp-profile-information-wand {
        min-height: 0;
        padding-top: 0;
    }

    .wp-profile-information-wand h3,
    .wp-profile-information-wand-figure {
        display: none;
    }

    .wp-profile-information-wand::before {
        display: block;
        margin: 2px 14px 4px;
        background: linear-gradient(90deg, transparent, rgba(135, 99, 52, 0.7) 14%, rgba(135, 99, 52, 0.7) 44%, transparent 45%, transparent 55%, rgba(135, 99, 52, 0.7) 56%, rgba(135, 99, 52, 0.7) 86%, transparent) center / 100% 1px no-repeat;
        color: #d8a94e;
        font-size: 14px;
        line-height: 1;
        text-align: center;
        text-shadow: 0 0 6px rgba(216, 169, 78, 0.45);
        content: '\2726';
    }

    .wp-profile-information-wand-list {
        margin-top: 4px;
    }

    .wp-profile-information-wand-list > div {
        min-height: 36px;
        grid-template-columns: minmax(112px, 0.9fr) minmax(0, 1.1fr);
        gap: 10px;
        padding: 0 4px 6px;
    }

    .wp-profile-information-wand-list > div::after {
        right: 0;
        left: 0;
    }

    .wp-profile-information-wand-list dt {
        padding-left: 31px;
        font-size: 8.5px;
        letter-spacing: 0.25px;
    }

    .wp-profile-information-wand-list dd {
        font-size: 12.5px;
    }
}

@media (max-width: 340px) {
    .wp-profile-information-dossier-header h2 {
        font-size: 13.5px;
        letter-spacing: 1px;
    }

    .wp-profile-information-dossier::before {
        border-width: 60px 60px 62px;
        border-image-width: 60px 60px 62px;
    }
}


/* Galleria fotografica sui cellulari, come in concept_mobile3: titolo su una
   riga con il conteggio a destra, foto su due colonne con la cornice dorata
   ridotta in proporzione alla tessera. Il compositore resta com'e'. */
@media (max-width: 560px) {
    .wp-bacheca--photo-gallery .wp-photo-gallery-head {
        width: auto;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 46px;
        margin: 4px 7px 0;
    }

    .wp-bacheca--photo-gallery .wp-bacheca__title {
        font-size: 13px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-heading-divider {
        width: 100%;
        margin-top: 4px;
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-count {
        padding-right: 2px;
        font-size: 11.5px;
        white-space: nowrap;
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-count-icon {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
    }

    .wp-bacheca--photo-gallery .wp-photo-gallery-filters {
        margin-top: -2px;
        margin-bottom: 10px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding-bottom: 10px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-tile {
        aspect-ratio: 1 / 1;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-tile__img {
        inset: 3px;
        width: calc(100% - 6px);
        height: calc(100% - 6px);
    }

    .wp-bacheca--photo-gallery .wp-bacheca-tile__frame {
        border-width: 16px;
        border-image-width: 16px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-tile__tools {
        right: 8px;
        bottom: 8px;
        gap: 0;
        padding: 2px 3px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-tile__tools button {
        padding: 3px 5px;
        font-size: 11px;
    }
}

@media (max-width: 340px) {
    .wp-bacheca--photo-gallery .wp-photo-gallery-head {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .wp-bacheca--photo-gallery .wp-bacheca__title {
        font-size: 11.5px;
        letter-spacing: 0.3px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca__grid {
        gap: 7px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-tile__frame {
        border-width: 14px;
        border-image-width: 14px;
    }
}


/* Compositore della galleria sui cellulari: torna il cerchio con l'avatar
   accanto a "Allega un ricordo" come in concept_mobile3; avatar e bottoni
   piu' piccoli, cosi' entrano tutti su una riga. */
@media (max-width: 560px) {
    .wp-bacheca--photo-gallery .wp-bacheca-composer__card {
        gap: 8px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__fake {
        gap: 6px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__avatar {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        display: block;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__pill {
        min-height: 34px;
        padding: 0 9px;
        font-size: 12px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts {
        gap: 6px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button i {
        font-size: 14px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 340px) {
    .wp-bacheca--photo-gallery .wp-bacheca-composer__avatar {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__pill {
        padding: 0 8px;
        font-size: 11.5px;
    }

    .wp-bacheca--photo-gallery .wp-bacheca-composer__shortcuts button {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
}

/* Fasce di Merito e Popolarita: bonus tra parentesi sul Carisma e nome della fascia sotto la card */
.wp-rp-social-score em {
    color: #85a958;
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
}

.wp-rp-social-score em.is-negative {
    color: #c8654a;
}

.wp-rp-social-band {
    grid-column: 1 / -1;
    margin: -4px 0 2px;
    color: rgba(190, 151, 88, 0.82);
    font: 400 10px/1.2 'EB Garamond', Georgia, serif;
    text-align: center;
}

.wp-rp-social-band strong {
    color: #e3d8b8;
    font-weight: 500;
}

.wp-profile-sections:has(#wp-profile-panel-settings.wp-profile-editor:not([hidden])) {
    height: auto;
    min-height: 0;
}

.wp-profile-section-content:has(#wp-profile-panel-settings.wp-profile-editor:not([hidden])) {
    overflow: visible;
}

#wp-profile-panel-settings.wp-profile-editor {
    height: auto;
    overflow: visible;
}

#wp-profile-panel-settings.wp-profile-editor > .wp-profile-detail-card {
    --wp-editor-pad: clamp(16px, 2.2vw, 30px);
    height: auto;
    overflow: visible;
    padding-right: var(--wp-editor-pad);
    padding-bottom: 0;
    padding-left: var(--wp-editor-pad);
}

.wp-profile-editor [hidden] {
    display: none !important;
}

.wp-profile-editor-icona {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.wp-profile-editor-intro {
    max-width: 760px;
    margin: -2px 3px 16px;
    color: rgba(227, 216, 184, 0.7);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14.5px;
    font-style: italic;
    line-height: 1.45;
}

.wp-profile-editor-avviso {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 16px;
    padding: 13px 16px 14px;
    border: 1px solid rgba(83, 60, 28, 0.62);
    border-left: 2px solid #d8a94e;
    border-radius: 7px;
    background: rgba(5, 7, 11, 0.58);
}

.wp-profile-editor-avviso--declinata {
    border-left-color: #c98578;
}

.wp-profile-editor-avviso--inviata {
    border-left-color: #8eaa78;
}

.wp-profile-editor-avviso-icona {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #d8a94e;
}

.wp-profile-editor-avviso--declinata .wp-profile-editor-avviso-icona {
    color: #c98578;
}

.wp-profile-editor-avviso--inviata .wp-profile-editor-avviso-icona {
    color: #8eaa78;
}

.wp-profile-editor-avviso-testo strong {
    display: block;
    margin-bottom: 4px;
    color: #e3d8b8;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.wp-profile-editor-avviso-testo p {
    margin: 0;
    color: rgba(227, 216, 184, 0.74);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14.5px;
    line-height: 1.45;
}

.wp-profile-editor-avviso-testo blockquote {
    margin: 10px 0 0;
    padding: 8px 0 2px 14px;
    border-left: 1px solid rgba(201, 133, 120, 0.55);
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.45;
}

.wp-profile-editor-avviso-testo blockquote span {
    display: block;
    margin-bottom: 3px;
    color: #c98578;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-style: normal;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.wp-profile-editor-stato {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    padding: 1px 9px 1px 8px;
    border: 1px solid rgba(216, 169, 78, 0.5);
    border-radius: 999px;
    background: rgba(74, 51, 20, 0.22);
    color: #e8c273;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.wp-profile-editor-stato::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px rgba(216, 169, 78, 0.6);
}

.is-svuotato .wp-profile-editor-stato {
    border-color: rgba(227, 216, 184, 0.22);
    background: transparent;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12.5px;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
}

.is-svuotato .wp-profile-editor-stato::before,
.is-in-revisione .wp-profile-editor-stato::before {
    box-shadow: none;
}

.is-in-revisione .wp-profile-editor-stato {
    border-color: rgba(227, 216, 184, 0.3);
    background: rgba(227, 216, 184, 0.05);
    color: #d9ccaa;
}

.wp-profile-editor-ripristina {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: rgba(227, 216, 184, 0.66);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13.5px;
    font-style: italic;
    cursor: pointer;
}

.wp-profile-editor-ripristina .wp-profile-editor-icona {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
}

.wp-profile-editor-ripristina:hover,
.wp-profile-editor-ripristina:focus-visible {
    color: #e8c273;
    outline: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wp-profile-editor-conta {
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    font-style: italic;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.is-vicino-limite .wp-profile-editor-conta {
    color: #c98578;
}

.wp-profile-editor-consigli {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 26px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
}

.wp-profile-editor-consigli li {
    position: relative;
    padding-left: 17px;
    color: rgba(227, 216, 184, 0.72);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    line-height: 1.38;
}

.wp-profile-editor-consigli li::before {
    content: '\2726';
    position: absolute;
    top: 1px;
    left: 0;
    color: #b58b4a;
    font-size: 10px;
}

.wp-profile-editor-volto {
    margin: 0 0 24px;
    padding: 16px 18px 15px;
    border: 1px solid rgba(83, 60, 28, 0.5);
    border-radius: 8px;
    background: rgba(5, 7, 11, 0.36);
}

.wp-profile-editor-volto-testa,
.wp-profile-editor-titolo-storia {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 18px;
    margin: 0 0 13px;
}

.wp-profile-editor-titolo-storia {
    margin: 4px 3px 14px;
}

.wp-profile-editor-volto-testa h3,
.wp-profile-editor-titolo-storia h3 {
    margin: 0;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.75px;
    text-transform: uppercase;
}

.wp-profile-editor-volto-testa p,
.wp-profile-editor-titolo-storia p {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: rgba(227, 216, 184, 0.62);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14.5px;
    font-style: italic;
}

.wp-profile-editor-titolo-storia p .wp-profile-editor-icona {
    color: #d8a94e;
}

.wp-profile-editor-tessere {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
}

.wp-profile-editor-tessera {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 14px 15px 13px;
    border: 1px solid rgba(83, 60, 28, 0.52);
    border-radius: 8px;
    background: rgba(5, 7, 11, 0.44);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wp-profile-editor-tessera.is-modificato {
    border-color: rgba(216, 169, 78, 0.6);
    box-shadow: inset 0 0 22px rgba(216, 169, 78, 0.05);
}

.wp-profile-editor-tessera.is-in-revisione {
    border-style: dashed;
    border-color: rgba(227, 216, 184, 0.28);
}

.wp-profile-editor-tessera--testo {
    gap: 7px;
    padding-bottom: 15px;
}

.wp-profile-editor-media-testa {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.wp-profile-editor-miniatura {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(216, 169, 78, 0.55);
    background: rgba(7, 9, 14, 0.9);
    box-shadow: 0 0 0 3px rgba(5, 7, 11, 0.8), 0 0 0 4px rgba(216, 169, 78, 0.22);
}

.wp-profile-editor-miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-profile-editor-miniatura--profile {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.wp-profile-editor-miniatura--profile img {
    object-position: 50% 22%;
}

.wp-profile-editor-miniatura--cover {
    width: 104px;
    height: 58px;
    border-radius: 5px;
}

.wp-profile-editor-miniatura--musica {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #d8a94e;
}

.wp-profile-editor-miniatura--musica .wp-profile-editor-icona {
    width: 20px;
    height: 20px;
}

.wp-profile-editor-media-dati {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.wp-profile-editor-media-titolo {
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.wp-profile-editor-media-file {
    max-width: 100%;
    overflow: hidden;
    color: rgba(227, 216, 184, 0.66);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.is-modificato .wp-profile-editor-media-file {
    color: #e3d8b8;
    font-style: normal;
}

.wp-profile-editor-media-azioni {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wp-profile-editor-modulo .wp-profile-editor-bottone,
.wp-profile-editor-bottone {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(216, 169, 78, 0.52);
    border-radius: 5px;
    background: rgba(74, 51, 20, 0.2);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.wp-profile-editor-modulo label.wp-profile-editor-bottone > span,
.wp-profile-editor-bottone > span {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: inherit;
}

.wp-profile-editor-bottone .wp-profile-editor-icona {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

.wp-profile-editor-bottone:hover,
.wp-profile-editor-bottone:focus-visible,
.wp-profile-editor-bottone:focus-within {
    border-color: #d8a94e;
    background: rgba(116, 75, 24, 0.28);
    color: #f0c66d;
    outline: none;
}

.wp-profile-editor-bottone--leggero {
    border-color: rgba(216, 169, 78, 0.26);
    background: transparent;
}

.wp-profile-editor-bottone:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.wp-profile-editor-modulo .wp-profile-editor-file {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.wp-profile-editor-media-regola {
    display: none;
    flex-direction: column;
    gap: 9px;
    padding-top: 11px;
    border-top: 1px solid rgba(108, 72, 28, 0.3);
}

.wp-profile-editor-media.is-modificato .wp-profile-editor-media-regola {
    display: flex;
}

.wp-profile-editor-modulo .wp-profile-editor-zoom {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wp-profile-editor-modulo .wp-profile-editor-zoom > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #b58b4a;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.wp-profile-editor-modulo .wp-profile-editor-zoom output {
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    text-transform: none;
}

.wp-profile-editor-modulo .wp-profile-editor-zoom input[type='range'] {
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: #d8a94e;
    cursor: pointer;
}

.wp-profile-editor-media-regola-bottoni {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wp-profile-editor-media-guida,
.wp-profile-editor-formati,
.wp-profile-editor-media-nota {
    margin: 0;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13.5px;
    font-style: italic;
}

.wp-profile-editor-formati {
    color: rgba(227, 216, 184, 0.6);
    font-size: 13px;
}

.wp-profile-editor-media-nota {
    color: #d9a79c;
    font-size: 13px;
}

.wp-profile-editor-campo-testa {
    min-height: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.wp-profile-editor-modulo label.wp-profile-editor-etichetta {
    display: inline;
    margin-right: auto;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.wp-profile-editor-attuale {
    margin: 0;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

.wp-profile-editor-attuale strong {
    color: #e3d8b8;
    font-style: normal;
    font-weight: 500;
}

.wp-profile-editor-modulo .wp-profile-editor-riga {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(83, 60, 28, 0.7);
    border-radius: 7px;
    background: rgba(7, 9, 14, 0.76);
    color: #e3d8b8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
}

.wp-profile-editor-modulo .wp-profile-editor-riga::placeholder {
    color: rgba(227, 216, 184, 0.34);
    font-style: italic;
}

.wp-profile-editor-modulo .wp-profile-editor-riga:focus {
    border-color: rgba(216, 169, 78, 0.82);
    box-shadow: 0 0 0 3px rgba(216, 169, 78, 0.08), 0 0 14px rgba(216, 169, 78, 0.1);
}

.wp-profile-editor-modulo .wp-profile-editor-storia {
    width: 100%;
    min-height: 0;
    margin: 0;
}

.wp-profile-editor-blocco {
    transition: box-shadow 200ms ease;
}

.wp-profile-editor-blocco:focus-within {
    box-shadow: 0 0 0 1px rgba(216, 169, 78, 0.5), 0 0 30px rgba(216, 169, 78, 0.12);
}

.wp-profile-editor-blocco.is-modificato:not(:focus-within) {
    box-shadow: 0 0 0 1px rgba(216, 169, 78, 0.32);
}

.wp-profile-editor-blocco.is-in-revisione {
    box-shadow: 0 0 0 1px rgba(227, 216, 184, 0.2);
}

.wp-profile-editor-stato-blocco {
    position: absolute;
    z-index: 3;
    top: 22px;
    right: clamp(28px, 3.4vw, 50px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-profile-editor-storia .wp-profile-story-card .wp-profile-editor-stato-blocco {
    top: 17px;
    right: 22px;
}

.wp-profile-editor-storia .wp-profile-story-heading {
    padding-right: 220px;
}

.wp-profile-editor-modulo .wp-profile-editor-area {
    position: relative;
    z-index: 2;
    display: block;
    width: calc(100% - var(--story-copy-left, 58px) + 10px);
    min-height: 58px;
    margin: -4px 0 0 calc(var(--story-copy-left, 58px) - 11px);
    padding: 6px 10px 8px;
    overflow-y: auto;
    border: 1px dashed transparent;
    border-radius: 6px;
    background: transparent;
    color: rgba(227, 216, 184, 0.9);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.55;
    resize: none;
    cursor: text;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.wp-profile-editor-modulo .wp-profile-editor-area:hover {
    border-color: rgba(216, 169, 78, 0.3);
}

.wp-profile-editor-modulo .wp-profile-editor-area:focus {
    border-style: solid;
    border-color: rgba(216, 169, 78, 0.6);
    background: rgba(7, 9, 14, 0.5);
    box-shadow: none;
    outline: none;
}

.wp-profile-editor-modulo .wp-profile-editor-area::placeholder {
    color: rgba(227, 216, 184, 0.34);
}

.wp-profile-editor-modulo .wp-profile-editor-area[readonly] {
    border-color: transparent;
    cursor: default;
}

.wp-profile-editor-piede {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 9px 0 0 var(--story-copy-left, 58px);
}

.wp-profile-editor-nota {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: rgba(181, 139, 74, 0.85);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13.5px;
    font-style: italic;
}

.wp-profile-editor-suggerimenti {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wp-profile-editor-suggerimenti li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 9px 1px 8px;
    border: 1px dashed rgba(181, 139, 74, 0.38);
    border-radius: 999px;
    color: rgba(214, 178, 112, 0.88);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13.5px;
    font-style: italic;
}

.wp-profile-editor-suggerimenti li::before {
    content: '\2726';
    color: #b58b4a;
    font-size: 9px;
    font-style: normal;
}

.wp-profile-editor-piede .wp-profile-editor-conta {
    margin-left: auto;
}

.wp-profile-editor-griglia .wp-profile-editor-largo {
    grid-column: 1 / -1;
    min-height: 115px;
}

.wp-profile-editor-modulo > .wp-profile-editor-barra {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
    margin: 22px calc(-1 * var(--wp-editor-pad, 18px)) 0;
    padding: 12px var(--wp-editor-pad, 18px) 13px;
    border-top: 1px solid rgba(108, 72, 28, 0.5);
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, rgba(10, 11, 17, 0.96), rgba(6, 7, 11, 0.985));
    box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.wp-profile-editor-barra-riepilogo {
    min-width: 0;
    flex: 1 1 320px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.wp-profile-editor-barra-titolo {
    color: #b58b4a;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.wp-profile-editor-barra-elenco {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

.wp-profile-editor-voce {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 1px 9px;
    border: 1px solid rgba(216, 169, 78, 0.42);
    border-radius: 999px;
    background: rgba(74, 51, 20, 0.24);
    color: #ecdcb2;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-style: normal;
}

.wp-profile-editor-modulo > .wp-profile-editor-barra .wp-profile-editor-barra-riepilogo > p {
    width: 100%;
    flex: 0 0 100%;
    margin: 0;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
}

.wp-profile-editor-modulo > .wp-profile-editor-barra .wp-profile-editor-barra-riepilogo > p:empty {
    display: none;
}

.wp-profile-editor-modulo > .wp-profile-editor-barra .wp-profile-editor-barra-riepilogo > p.is-error {
    color: #c98578;
}

.wp-profile-editor-modulo > .wp-profile-editor-barra .wp-profile-editor-barra-riepilogo > p.is-success {
    color: #8eaa78;
}

.wp-profile-settings-form > footer.wp-profile-editor-barra button[type='submit'] {
    min-width: 150px;
    height: 36px;
    padding: 0 18px;
    border: 1px solid rgba(216, 169, 78, 0.78);
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(128, 88, 30, 0.42), rgba(74, 51, 20, 0.36));
    color: #f0cf82;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
}

.wp-profile-settings-form > footer.wp-profile-editor-barra button[type='submit']:hover:not(:disabled),
.wp-profile-settings-form > footer.wp-profile-editor-barra button[type='submit']:focus-visible {
    border-color: #f0c66d;
    background: linear-gradient(180deg, rgba(150, 104, 36, 0.5), rgba(92, 63, 24, 0.44));
    color: #ffe0a0;
    outline: none;
}

.wp-profile-settings-form > footer.wp-profile-editor-barra button[type='submit']:disabled {
    border-color: rgba(216, 169, 78, 0.3);
    background: rgba(74, 51, 20, 0.12);
    color: rgba(216, 169, 78, 0.5);
    cursor: not-allowed;
    opacity: 1;
}

.wp-profile-editor-modulo.is-bloccato .wp-profile-editor-bottone--file {
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
}

.wp-profile-editor-eroe {
    display: none;
}

.wp-character-stage:has(#wp-profile-panel-settings.wp-profile-editor:not([hidden])) .wp-profile-editor-eroe:not([hidden]) {
    display: inline-flex;
}

.wp-character-widget .wp-profile-editor-eroe {
    position: absolute;
    z-index: 9;
    align-items: center;
    gap: 7px;
    padding: 6px 13px 6px 11px;
    border: 1px solid rgba(216, 169, 78, 0.78);
    border-radius: 999px;
    background: rgba(5, 7, 11, 0.86);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
    color: #ecc877;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.wp-character-widget .wp-profile-editor-eroe:hover,
.wp-character-widget .wp-profile-editor-eroe:focus-visible {
    border-color: #f0c66d;
    background: rgba(40, 28, 11, 0.94);
    color: #ffe0a0;
    outline: none;
}

.wp-character-widget .wp-profile-editor-eroe .wp-profile-editor-icona {
    width: 15px;
    height: 15px;
}

.wp-character-widget .wp-profile-editor-eroe--ritratto {
    bottom: -2%;
    left: 50%;
    transform: translateX(-50%);
}

.wp-character-widget > .wp-profile-editor-eroe--copertina {
    position: absolute;
    z-index: 9;
    right: 80px;
    bottom: 42px;
}

@media (max-width: 1500px) {
    .wp-profile-editor-tessere {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .wp-profile-editor-storia .wp-profile-story-heading {
        padding-right: 0;
    }

    .wp-profile-editor-stato-blocco,
    .wp-profile-editor-storia .wp-profile-story-card .wp-profile-editor-stato-blocco {
        position: relative;
        top: auto;
        right: auto;
        margin: -2px 0 8px var(--story-copy-left, 58px);
    }
}

@media (max-width: 760px) {
    #wp-profile-panel-settings.wp-profile-editor > .wp-profile-detail-card {
        --wp-editor-pad: 16px;
    }

    .wp-profile-editor-intro {
        font-size: 15px;
    }

    .wp-profile-editor-volto {
        padding: 14px 12px 13px;
    }

    .wp-profile-editor-tessere {
        grid-template-columns: minmax(0, 1fr);
    }

    .wp-profile-editor-modulo .wp-profile-editor-storia {
        padding: 0;
    }

    .wp-profile-editor-storia .wp-profile-story-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .wp-profile-editor-storia .wp-profile-story-biography,
    .wp-profile-editor-storia .wp-profile-story-card {
        --story-copy-left: 0px;
        min-height: 0;
        padding: 20px 16px 18px;
    }

    .wp-profile-settings-form.wp-profile-editor-modulo {
        display: contents;
    }

    .wp-profile-editor-modulo > .wp-profile-editor-barra {
        padding: 10px 14px 12px;
    }

    .wp-profile-editor-barra-riepilogo {
        flex-basis: 100%;
    }

    .wp-profile-editor-barra-elenco {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .wp-profile-editor-barra-elenco .wp-profile-editor-voce {
        flex: 0 0 auto;
    }

    .wp-profile-settings-form > footer.wp-profile-editor-barra button[type='submit'] {
        flex: 1 1 0;
        min-width: 0;
    }

    .wp-character-widget .wp-profile-editor-eroe {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
    }

    .wp-character-widget .wp-profile-editor-eroe .wp-profile-editor-icona {
        width: 17px;
        height: 17px;
    }

    .wp-character-widget .wp-profile-editor-eroe > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .wp-character-widget .wp-profile-editor-eroe--ritratto {
        right: -8px;
        bottom: 4px;
        left: auto;
        transform: none;
    }

    .wp-character-widget > .wp-profile-editor-eroe--copertina {
        top: 34px;
        right: 30px;
        bottom: auto;
    }
}

.wp-character-widget-title {
    max-width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: -2px 0 1px;
    padding: 0;
    border: 0;
    background: none;
    color: #e3c27a;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.98rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: left;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.wp-character-widget-title > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-character-widget-title > small {
    flex: none;
    padding: 1px 6px;
    border: 1px solid rgba(216, 169, 78, 0.45);
    border-radius: 999px;
    background: rgba(7, 9, 14, 0.55);
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-style: normal;
    letter-spacing: 0.4px;
    line-height: 1.3;
}

.wp-character-widget-title:hover > span,
.wp-character-widget-title:focus-visible > span {
    color: #f0dfb4;
    text-decoration: underline;
    text-decoration-color: rgba(216, 169, 78, 0.55);
    text-underline-offset: 3px;
}

.wp-character-widget-title:focus-visible {
    outline: none;
}

.wp-profile-title-main {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 auto 16px;
    padding: 14px 22px 13px;
    border: 1px solid rgba(216, 169, 78, 0.42);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0, rgba(216, 169, 78, 0.12), transparent 70%),
        rgba(5, 7, 11, 0.62);
    text-align: center;
}

.wp-profile-title-main small {
    color: #b58b4a;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.wp-profile-title-main strong {
    color: #e8c46e;
    font-family: 'Cinzel', serif;
    font-size: clamp(15px, 1.3vw, 19px);
    font-weight: 500;
    letter-spacing: 0.6px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.wp-profile-title-main p {
    margin: 0;
    color: rgba(227, 216, 184, 0.78);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    font-style: italic;
    line-height: 1.4;
}

.wp-profile-title-main em {
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
}

.wp-profile-titles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 58px;
    gap: 7px;
}

.wp-profile-title-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 7px 11px;
    border: 1px solid rgba(83, 60, 28, 0.46);
    border-radius: 7px;
    background: rgba(5, 7, 11, 0.46);
    cursor: help;
}

.wp-profile-title-card strong {
    overflow: hidden;
    color: #e3d8b8;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-profile-title-card p {
    margin: 0;
    overflow: hidden;
    color: rgba(227, 216, 184, 0.6);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-profile-story-sigillo {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
    text-align: center;
}

.wp-profile-story-sigillo img {
    width: auto;
    max-width: min(100%, 420px);
    height: auto;
    max-height: 220px;
    display: block;
    object-fit: contain;
}

.wp-profile-story-sigillo figcaption {
    color: rgba(227, 216, 184, 0.62);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 980px) {
    .wp-profile-titles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .wp-character-widget-title {
        font-size: 0.86rem;
    }
}

@media (max-width: 720px) {
    .wp-profile-titles-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .wp-character-widget-title {
        justify-content: center;
        margin: 0;
    }
}

.wp-profile-attesa-pv {
    display: block;
    margin-top: 2px;
    color: rgba(216, 169, 78, 0.9);
    font-style: italic;
}

.wp-profile-story-attesa {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 6px 0 12px var(--story-copy-left, 58px);
    color: rgba(227, 216, 184, 0.62);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
}

.wp-profile-story-attesa strong {
    padding: 1px 9px;
    border: 1px solid rgba(216, 169, 78, 0.5);
    border-radius: 999px;
    color: #d8a94e;
    font-family: 'Cinzel', serif;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.wp-profile-story-attesa--sistemare strong {
    border-color: rgba(201, 133, 120, 0.6);
    color: #c98578;
}

.wp-profile-editor-nota-staff {
    margin: 14px 0 0;
}

.wp-profile-editor-nota-staff[hidden] {
    display: none;
}

.wp-profile-editor-modulo .wp-profile-editor-nota-staff textarea.wp-profile-editor-riga {
    min-height: 64px;
    resize: vertical;
    line-height: 1.4;
}

.wp-character-widget > .wp-profile-azioni {
    position: absolute;
    z-index: 9;
    right: 80px;
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wp-character-widget > .wp-profile-azioni > .wp-profile-editor-eroe {
    position: static;
}

.wp-character-widget > .wp-profile-azioni > .wp-profile-editor-eroe:not([hidden]) {
    display: inline-flex;
}

.wp-character-widget > .wp-profile-azioni > a.wp-profile-editor-eroe {
    text-decoration: none;
}

.wp-character-widget > .wp-profile-azioni > span.wp-profile-editor-eroe {
    cursor: default;
}

@media (max-width: 760px) {
    .wp-character-widget > .wp-profile-azioni {
        top: 34px;
        right: 30px;
        bottom: auto;
        flex-direction: column;
    }
}

@media (min-width: 761px) and (max-width: 980px) {
    .wp-character-widget > .wp-character-widget-portrait {
        --wp-character-portrait-size: 172px;
        left: 26px;
    }

    .wp-character-widget.wp-character-widget--has-music {
        height: 390px;
        min-height: 390px;
    }

    .wp-character-widget--has-music > .wp-character-widget-portrait,
    .wp-character-widget--has-music > .wp-character-widget-copy {
        top: calc((100% - 150px) / 2 + 10px);
    }

    .wp-character-widget > .wp-character-widget-copy,
    .wp-character-widget--has-music > .wp-character-widget-copy {
        right: 20px;
        left: 206px;
    }

    .wp-character-widget-copy h1 {
        font-size: clamp(1.45rem, 3.4vw, 1.75rem);
    }

    .wp-character-widget-role {
        --profile-badge-width: 104px;
        --profile-badge-height: 29px;
    }

    .wp-character-widget-role.wp-character-widget-school-year {
        --profile-badge-width: 79px;
    }

    .wp-character-widget-badges {
        gap: 5px;
    }

    .wp-character-widget-role > span {
        font-size: 0.82rem;
    }

    .wp-character-widget .wp-profile-editor-eroe {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
    }

    .wp-character-widget .wp-profile-editor-eroe .wp-profile-editor-icona {
        width: 17px;
        height: 17px;
    }

    .wp-character-widget .wp-profile-editor-eroe > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .wp-character-widget .wp-profile-editor-eroe--ritratto {
        right: -8px;
        bottom: 4px;
        left: auto;
        transform: none;
    }

    .wp-character-widget > .wp-profile-editor-eroe--copertina,
    .wp-character-widget > .wp-profile-azioni {
        top: auto;
        right: 22px;
        bottom: 22px;
    }

    .wp-character-widget--has-music > .wp-profile-azioni {
        flex-direction: column;
    }
}

@media (min-width: 561px) and (max-width: 760px) {
    .wp-character-widget.wp-character-widget--has-music {
        height: 370px;
        min-height: 370px;
    }

    .wp-character-widget--has-music > .wp-character-widget-portrait,
    .wp-character-widget--has-music > .wp-character-widget-copy {
        top: calc((100% - 150px) / 2 + 10px);
    }

    .wp-character-widget > .wp-character-widget-portrait {
        left: 36px;
    }

    .wp-character-widget > .wp-character-widget-copy,
    .wp-character-widget--has-music > .wp-character-widget-copy {
        left: 180px;
    }
}

.wp-character-widget:has(> .wp-character-widget-cover img:not([src$='/assets/img/profile_head.svg'])) > .wp-character-widget-portrait {
    z-index: 4;
}

.wp-character-widget:has(> .wp-character-widget-cover img:not([src$='/assets/img/profile_head.svg'])) > .wp-character-widget-copy {
    width: fit-content;
}

.wp-character-widget:has(> .wp-character-widget-cover img:not([src$='/assets/img/profile_head.svg'])) > .wp-character-widget-copy::before {
    position: absolute;
    inset: -30px -42px;
    z-index: -1;
    border-radius: 60px;
    background: rgba(4, 6, 10, 0.86);
    filter: blur(18px);
    content: '';
    pointer-events: none;
}

@media (max-width: 560px) {
    .wp-character-widget:has(> .wp-character-widget-cover img:not([src$='/assets/img/profile_head.svg'])) > .wp-character-widget-copy {
        max-width: calc(100% - 28px);
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 560px) {
    .wp-profile-section-tabs,
    .wp-profile-sections.is-dossier-open .wp-profile-section-tabs {
        padding-right: 5%;
        padding-left: 5%;
    }

    .wp-profile-section-tabs > button,
    .wp-profile-section-tabs > button:first-child,
    .wp-profile-section-tabs .wp-profile-dossier-trigger {
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .wp-profile-relations-empty,
    .wp-profile-story-card small {
        font-size: 12px;
    }

    .wp-wall-composer-actions button,
    .wp-wall-composer-tools button,
    .wp-wall-post-header a,
    .wp-wall-post-header time,
    .wp-wall-post-date-toggle,
    .wp-wall-post-like-button,
    .wp-wall-post-comment-button,
    .wp-wall-post-like-count,
    .wp-wall-post-comment-count,
    .wp-profile-relation-copy small,
    .wp-profile-relations-more,
    .wp-profile-relations-header h2,
    .wp-profile-music h2,
    .wp-profile-music-times {
        font-size: 12px;
    }

    .wp-rp-magic-note,
    .wp-rp-physical-note,
    .wp-rp-social-note,
    .wp-rp-stats-group--factions > p,
    .wp-rp-status-note {
        font-size: 12px;
    }
}

@media (max-width: 340px) {
    .wp-profile-section-tabs > button,
    .wp-profile-section-tabs > button:first-child,
    .wp-profile-section-tabs .wp-profile-dossier-trigger {
        font-size: 10px;
        letter-spacing: 0.2px;
    }
}

@media (max-width: 560px) and (pointer: coarse) {
    .wp-profile-section-tabs {
        z-index: 8;
    }

    .wp-profile-section-tabs > button::before,
    .wp-profile-section-tabs .wp-profile-dossier-trigger::before {
        position: absolute;
        top: 0;
        right: -3px;
        bottom: 0;
        left: -3px;
        content: '';
    }

    .wp-profile-section-tabs > button:nth-child(-n + 4)::before {
        top: -19px;
    }

    .wp-character-widget-copy > .wp-character-widget-title {
        z-index: 1;
    }

    .wp-profile-section-tabs .wp-profile-dossier-trigger::before,
    .wp-profile-section-tabs > #wp-profile-tab-settings::before {
        bottom: -18px;
    }

    .wp-wall-composer-tools button,
    .wp-wall-composer-actions button,
    .wp-character-widget-title,
    .wp-wall-post-date-toggle,
    .wp-profile-relations-edit,
    .wp-profile-relations-more {
        position: relative;
    }

    .wp-wall-composer-tools button::after,
    .wp-wall-composer-actions button::after,
    .wp-character-widget-title::after,
    .wp-wall-post-date-toggle::after,
    .wp-profile-relations-edit::after,
    .wp-profile-relations-more::after {
        position: absolute;
        top: calc(50% - 22px);
        right: -8px;
        left: -8px;
        height: 44px;
        content: '';
    }
}

@media (min-width: 981px) and (max-width: 1299px) {
    .wp-profile-section-tabs {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
        grid-auto-rows: 32px;
        align-content: start;
        min-height: 68px;
    }

    .wp-profile-section-tabs > button,
    .wp-profile-section-tabs > .wp-profile-dossier-menu {
        min-width: 0;
        min-height: 0;
    }

    .wp-profile-section-tabs > .wp-profile-dossier-menu {
        display: flex;
        justify-content: center;
    }

    .wp-profile-section-tabs > #wp-profile-tab-settings {
        margin-left: 0;
    }
}

@media (min-width: 981px) and (max-width: 1200px) {
    body .wp-character-widget > .wp-character-widget-portrait {
        --wp-character-portrait-size: clamp(150px, 26vh, 200px);
        left: 30px;
    }

    body .wp-character-widget > .wp-character-widget-copy,
    body .wp-character-widget--has-music > .wp-character-widget-copy {
        right: 28px;
        left: calc(30px + clamp(150px, 26vh, 200px) * 1.05);
    }

    body .wp-character-widget.wp-character-widget--has-music {
        height: 400px;
        min-height: 400px;
    }

    body .wp-character-widget--has-music > .wp-character-widget-portrait,
    body .wp-character-widget--has-music > .wp-character-widget-copy {
        top: calc((100% - 150px) / 2 + 10px);
    }

    body .wp-character-widget > .wp-profile-music {
        top: auto;
        right: auto;
        bottom: 18px;
        left: 50%;
        width: min(300px, calc(100% - 38px));
        min-height: 0;
        padding: 12px 16px 10px;
        transform: translateX(-50%);
    }

    body .wp-character-widget > .wp-profile-editor-eroe--copertina,
    body .wp-character-widget > .wp-profile-azioni {
        top: auto;
        right: 22px;
        bottom: 22px;
    }

    body .wp-character-widget--has-music > .wp-profile-azioni {
        flex-direction: column;
        align-items: flex-end;
    }

    body .wp-character-widget .wp-profile-editor-eroe {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 0;
    }

    body .wp-character-widget .wp-profile-editor-eroe .wp-profile-editor-icona {
        width: 17px;
        height: 17px;
    }

    body .wp-character-widget .wp-profile-editor-eroe > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    body .wp-character-widget .wp-profile-editor-eroe--ritratto {
        right: -8px;
        bottom: 4px;
        left: auto;
        transform: none;
    }
}

@media (max-width: 760px) {
    html body .wp-profile-editor-modulo > .wp-profile-editor-barra {
        bottom: calc(var(--wpa-altezza, 0px) + 20px);
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .wp-profile-editor-modulo > .wp-profile-editor-barra .wp-profile-editor-barra-riepilogo {
        flex: 1 1 0;
        min-width: 0;
    }

    .wp-profile-settings-form > footer.wp-profile-editor-barra button[type='submit'] {
        flex: 0 0 auto;
        padding: 0 14px;
    }
}

@media (max-width: 560px) and (pointer: coarse) {
    .wp-profile-music-play,
    .wp-profile-music-volume {
        position: relative;
    }

    .wp-profile-music-play::after,
    .wp-profile-music-volume::after {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 44px;
        height: 44px;
        content: '';
        transform: translate(-50%, -50%);
    }

    .wp-wall-post-header a {
        margin-top: -14px;
        margin-bottom: -14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

@media (min-width: 761px) and (max-width: 780px) {
    .wp-character-widget > .wp-character-widget-copy,
    .wp-character-widget--has-music > .wp-character-widget-copy {
        right: 14px;
    }

    .wp-character-widget-badges {
        gap: 4px;
    }
}

.wp-profile-music > .wp-profile-music-invito {
    position: absolute;
    right: 18px;
    bottom: 9px;
    left: 18px;
    z-index: 2;
    margin: 0;
    color: #e3c27a;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-style: italic;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
}

.wp-profile-music.is-in-attesa .wp-profile-music-play {
    border-color: #d8a94e;
    animation: wp-profile-music-invito 2.6s ease-in-out infinite;
}

@keyframes wp-profile-music-invito {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(216, 169, 78, 0);
    }

    50% {
        box-shadow: 0 0 12px 3px rgba(216, 169, 78, 0.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wp-profile-music.is-in-attesa .wp-profile-music-play {
        animation: none;
        box-shadow: 0 0 10px 2px rgba(216, 169, 78, 0.4);
    }
}
