.pinnedposts-wrap {
    margin: 12px 0 18px;
    padding: 12px 15px;
    border: 1px solid #b49a62;
    border-left: 4px solid #b49a62;
    border-radius: 6px;
    background: rgba(180, 154, 98, .08);
}
.pinnedposts-heading {
    font-weight: 700;
    margin-bottom: 10px;
    color: inherit;
}
.pinnedposts-item + .pinnedposts-item {
    border-top: 1px solid rgba(128, 128, 128, .35);
    margin-top: 12px;
    padding-top: 12px;
}
.pinnedposts-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    font-size: .9em;
    opacity: .85;
    margin-bottom: 6px;
}
.pinnedposts-item h3 { margin: 5px 0; font-size: 1.05em; }
.pinnedposts-message { overflow-wrap: anywhere; }
/* Match NiebieskaIdylla's standard .button palette.
   Its themes.css switches these variables for [data-theme="light"] and [data-theme="dark"],
   so the pin control follows the active theme exactly like the other post action icons. */
.pinnedposts-action {
    display: inline-block;
    vertical-align: middle;
}
.pinnedposts-action form {
    display: inline;
    margin: 0;
    padding: 0;
}
.post-buttons .pinnedposts-action .pinnedposts-toggle {
    border-color: var(--color-1, #8cafb3);
    background-color: var(--color-2, #f5f8f8);
    color: var(--color-11, #707e80);
    font: inherit;
    cursor: pointer;
}
.post-buttons .pinnedposts-action .pinnedposts-toggle .icon {
    color: var(--color-11, #707e80);
}
.post-buttons .pinnedposts-action .pinnedposts-toggle:hover,
.post-buttons .pinnedposts-action .pinnedposts-toggle:focus {
    border-color: var(--color-1, #8cafb3);
    background-color: var(--color-2, #f5f8f8);
    color: var(--color-4, #2e3a3c);
}
.post-buttons .pinnedposts-action .pinnedposts-toggle:hover .icon,
.post-buttons .pinnedposts-action .pinnedposts-toggle:focus .icon {
    color: var(--color-4, #2e3a3c);
}

.pinnedposts-inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.pinnedposts-action {
    list-style: none;
}

.pinnedposts-item {
    position: relative;
    padding-right: 38px;
}
.pinnedposts-unpin-form {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    z-index: 2;
}
.pinnedposts-unpin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    color: inherit;
    cursor: pointer;
}
.pinnedposts-unpin .icon {
    color: inherit;
}


/* Align the pin control exactly with phpBB's neighboring post action buttons.
   The inline form's baseline was making its native button sit a pixel lower. */
.post-buttons > li.pinnedposts-action {
    display: flex;
    align-items: flex-start;
    margin-top: 0;
}
.post-buttons > li.pinnedposts-action .pinnedposts-inline-form {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 0;
}
.post-buttons > li.pinnedposts-action .pinnedposts-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 0;
    padding: 2px 3px;
    line-height: 1;
    vertical-align: top;
}
.post-buttons > li.pinnedposts-action .pinnedposts-toggle .icon {
    display: block;
    line-height: 1;
    margin: 0;
    padding: 0;
    transform: translateY(-1px);
}
