.webmaster-section-heading-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: 430px;
}

.webmaster-section-heading-side > p {
    margin: 0;
    color: #5f6c7d;
    text-align: right;
    line-height: 1.55;
}

.webmaster-section-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.webmaster-section-heading-actions .button {
    white-space: nowrap;
}

/* Alleen de extra webmastervelden; de popup zelf gebruikt exact de
   bestaande #form-posts #bioEdit Prikbordbericht-plaatsing. */
#form-posts #bioEdit .webmaster-composer-meta {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 12px;
    width: 100%;
    padding: 10px 14px 11px;
    background: #eeeeee;
    border-top: 1px solid #d2d2d2;
}

#form-posts #bioEdit .webmaster-composer-meta-field {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin: 0;
    color: #333;
    font: 600 13px/1.25 Tahoma, Arial, sans-serif;
}

#form-posts #bioEdit .webmaster-composer-meta-field > span {
    white-space: nowrap;
}

#form-posts #bioEdit .webmaster-composer-meta-field input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 5px 9px;
    color: #222;
    font: 400 14px/1.25 Tahoma, Arial, sans-serif;
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
}

#form-posts #bioEdit .webmaster-composer-meta-field input:focus {
    border-color: #5b9bd5;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(91,155,213,.16);
}

@media (max-width: 760px) {
    .webmaster-section-heading-side {
        align-items: flex-start;
        max-width: none;
    }

    .webmaster-section-heading-side > p {
        text-align: left;
    }

    #form-posts #bioEdit .webmaster-composer-meta {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 9px 10px 10px;
    }

    #form-posts #bioEdit .webmaster-composer-meta-field {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    #form-posts #bioEdit .webmaster-composer-meta-field {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* r688: Berichtgegevens eerst; de WYSIWYG-knoppen staan direct boven het tekstveld. */
#form-posts #bioEdit #bioEditOptions {
    display: flex !important;
    flex-direction: column !important;
}
#form-posts #bioEdit #bioEditOptions .webmaster-composer-meta {
    order: 1 !important;
}
#form-posts #bioEdit #bioEditOptions .profile-bio-ribbon {
    order: 2 !important;
}

/* r689: duidelijke scheiding tussen berichtgegevens en de WYSIWYG-balk. */
#form-posts #bioEdit #bioEditOptions .webmaster-composer-divider {
    order: 2 !important;
    display: block;
    height: 1px;
    margin: 0 14px;
    background: #c8c8c8;
    flex: 0 0 1px;
}

#form-posts #bioEdit #bioEditOptions .profile-bio-ribbon {
    order: 3 !important;
}

/* r689: webmasterberichten uit MySQL met reacties en respect. */
.webmaster-message {
    overflow: hidden;
}

.webmaster-message-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.webmaster-message-header h3 {
    margin: 0;
}

.webmaster-message-byline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    color: #77808d;
    font-size: 13px;
}

.webmaster-message-byline a,
.webmaster-comment-author {
    color: #315f9e;
    font-weight: 700;
    text-decoration: none;
}

.webmaster-message-byline a:hover,
.webmaster-comment-author:hover {
    text-decoration: underline;
}

.webmaster-message-byline time::before {
    content: "·";
    margin-right: 6px;
}

.webmaster-message-body {
    line-height: 1.55;
}

.webmaster-message-body > :first-child {
    margin-top: 0;
}

.webmaster-message-body > :last-child {
    margin-bottom: 0;
}

.webmaster-message-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e1e4e8;
}

.webmaster-action-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 9px;
    color: #4c5968;
    font: 700 13px/1.2 Tahoma, Arial, sans-serif;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.webmaster-action-button:hover,
.webmaster-action-button:focus-visible {
    color: #2458b6;
    background: #eef4fc;
    outline: 0;
}

.webmaster-action-button:disabled {
    cursor: default;
    opacity: .58;
}

.webmaster-action-button strong {
    min-width: 1ch;
    font-weight: 700;
}

.webmaster-heart-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.webmaster-respect-button.is-respected {
    color: #d84b57;
}

.webmaster-respect-button.is-respected .webmaster-heart-icon {
    fill: currentColor;
}

.webmaster-comments-panel {
    margin-top: 8px;
    padding: 12px;
    background: #f2f3f5;
    border-radius: 5px;
}

.webmaster-comments-panel[hidden] {
    display: none !important;
}

.webmaster-comments-list {
    display: grid;
    gap: 8px;
}

.webmaster-comment {
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #dde1e6;
    border-radius: 4px;
}

.webmaster-comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 4px;
    color: #7a8490;
    font-size: 12px;
}

.webmaster-comment-meta time::before {
    content: "·";
    margin-right: 7px;
}

.webmaster-comment-delete {
    margin-left: auto;
    padding: 0;
    color: #b64242;
    font: inherit;
    font-weight: 700;
    background: none;
    border: 0;
    cursor: pointer;
}

.webmaster-comment-delete:hover {
    text-decoration: underline;
}

.webmaster-comment-body {
    color: #303640;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.webmaster-comments-empty,
.webmaster-comments-login {
    margin: 0;
    color: #66717e;
}

.webmaster-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    margin-top: 10px;
}

.webmaster-comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 58px;
    max-height: 160px;
    resize: vertical;
    padding: 8px 10px;
    color: #222;
    font: 14px/1.4 Tahoma, Arial, sans-serif;
    background: #fff;
    border: 1px solid #adb5bf;
    border-radius: 4px;
}

.webmaster-comment-form textarea:focus {
    border-color: #5b87c4;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(75, 114, 170, .13);
}

@media (max-width: 640px) {
    .webmaster-message-header {
        display: block;
    }

    .webmaster-message-byline {
        justify-content: flex-start;
        margin-top: 5px;
    }

    .webmaster-comment-form {
        grid-template-columns: 1fr;
    }

    .webmaster-comment-form .button {
        justify-self: start;
    }
}
