.yrhField {
    box-sizing: border-box; width: 100%; min-width: 0; margin-block: 14px;
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    border-radius: 10px; background: color-mix(in srgb, currentColor 3%, transparent);
    color: inherit; text-align: start;
}
.yrhField > summary { padding: 14px 18px; cursor: pointer; font-weight: 600; }
.yrhField > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 8px; }
.yrhField__panel { padding: 0 18px 18px; }
.yrhField__hint { margin: 12px 0; font-size: .92em; line-height: 1.5; opacity: .85; }
.yrhField__label { display: block; font-weight: 600; margin-block: 12px 8px; }
.yrhField__input {
    display: block; box-sizing: border-box; width: 100% !important; max-width: 100% !important;
    min-height: 180px; padding: 12px; resize: vertical; line-height: 1.5; font: inherit;
}
.yrhField[data-format="code"] .yrhField__input { font-family: ui-monospace, Consolas, monospace; tab-size: 4; }
.yrhField__format { min-width: 0; }
.yrhField__format label { display: block; font-weight: 500; }
.yrhField__format select { display: block; box-sizing: border-box; width: 100%; max-width: 20rem; margin-block-start: 6px; }
/* Standard topic/edit forms: the field owns its heading and uses the available row width. */
.yrhHiddenRow { display: block !important; }
.yrhHiddenRow > .ipsFieldRow__label { display: none; }
.yrhHiddenRow > .ipsFieldRow__content { width: 100%; margin-inline: 0; }
/* Progressive fallback before JS moves the block out of the reply controls. */
.ipsComposeArea_formControl:has([data-yrhide-field]),
.ipsComposeArea_formControl:has([data-yrhide-format]) { flex: 1 0 100%; min-width: 0; }
@media (max-width: 600px) {
    .yrhField > summary { padding: 12px; }
    .yrhField__panel { padding: 0 12px 12px; }
    .yrhField__format select { max-width: none; }
}

/* The native toolbar button opens empty fields; saved content keeps a visible summary. */
.yrhField[data-editor-button="1"][data-has-content="0"]:not([open]) { display: none; }
.yrhEditorLabel { margin-inline-start: 6px; font-size: .9em; }
@media (max-width: 600px) {
    .yrhEditorLabel { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Protected post card: theme-aware surface, with one clear action. */
.yrhCard {
    display: flex; align-items: center; gap: 18px; margin-block: 16px;
    padding: 22px; border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    border-radius: 14px; background: var(--i-background_2, #f5f7fb);
    color: var(--i-color_root, inherit); text-align: start; box-sizing: border-box;
}
.yrhCard__icon {
    display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 12px;
    color: var(--i-primary, #245fe5); background: color-mix(in srgb, var(--i-primary, #245fe5) 11%, transparent);
}
.yrhCard__body { flex: 1 1 auto; min-width: 0; }
.yrhCard__title { display: block; font-size: 1em; line-height: 1.4; font-weight: 650; }
.yrhCard__message, .yrhCard__hint { margin: 5px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.yrhCard__message { opacity: .85; }
.yrhCard__hint { font-size: .9em; opacity: .75; }
.yrhCard__actions { flex: 0 0 auto; max-width: 100%; }
.yrhCard__button { white-space: normal; text-align: center; }
.yrhCard[data-access="open"] .yrhCard__icon { color: #16764b; background: color-mix(in srgb, #21a56c 12%, transparent); }
@media (max-width: 700px) {
    .yrhCard { flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 16px; }
    .yrhCard__icon { flex-basis: 38px; height: 38px; border-radius: 10px; }
    .yrhCard__body { flex-basis: calc(100% - 50px); }
    .yrhCard__actions, .yrhCard__button { width: 100%; }
}
