.madp-release-compare-trigger {
    background: #eaf8f2;
    border: 1px solid #55ba93;
    border-radius: 7px;
    color: #137d59;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 11px;
}

.madp-release-compare-trigger:hover,
.madp-release-compare-trigger:focus-visible {
    background: #d9f2e6;
    outline: 2px solid #84cfad;
    outline-offset: 2px;
}

.madp-release-new-version .madp-release-compare-trigger {
    margin-top: 9px;
}

.madp-release-compare-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 100010;
}

.madp-release-compare-modal__backdrop {
    background: rgba(11, 23, 46, .72);
    border: 0;
    cursor: pointer;
    inset: 0;
    position: absolute;
}

.madp-release-compare-modal__panel {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 22px 70px rgba(11, 23, 46, .28);
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 950px);
    max-width: 1240px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.madp-release-compare-modal__header {
    align-items: center;
    background: #17233f;
    color: #fff;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 16px 22px;
}

.madp-release-compare-modal__header h2 {
    color: inherit;
    font-size: 19px;
    line-height: 1.35;
    margin: 0;
}

.madp-release-compare-modal__header button {
    background: #fff;
    border: 0;
    border-radius: 7px;
    color: #17233f;
    cursor: pointer;
    flex: none;
    font-weight: 700;
    padding: 8px 10px;
}

.madp-release-compare-modal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr);
    min-height: 0;
    overflow: auto;
}

.madp-release-compare-modal__changes,
.madp-release-compare-modal__requests {
    min-width: 0;
    overflow: auto;
    padding: 22px;
}

.madp-release-compare-modal__requests {
    background: #f6f8fa;
    border-left: 1px solid #e1e7ed;
}

.madp-release-compare-modal__grid h3 {
    color: #17233f;
    font-size: 17px;
    margin: 0 0 8px;
}

.madp-compare-note,
.madp-compare-empty {
    color: #64738a;
    font-size: 12px;
    line-height: 1.55;
}

.madp-compare-count {
    color: #137d59;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 14px 0;
}

.madp-compare-change,
.madp-compare-request {
    background: #fff;
    border: 1px solid #e1e7ed;
    border-radius: 9px;
    margin: 0 0 12px;
    padding: 14px;
}

.madp-compare-change__number {
    color: #52627a;
    display: block;
    font-size: 11px;
    margin-bottom: 9px;
}

.madp-compare-change__before,
.madp-compare-change__after {
    border-radius: 6px;
    margin-top: 8px;
    padding: 10px;
}

.madp-compare-change__before { background: #fff0ee; }
.madp-compare-change__after { background: #e8f7ef; }

.madp-compare-change__before b,
.madp-compare-change__after b {
    display: block;
    font-size: 11px;
    margin-bottom: 5px;
}

.madp-compare-change__before del,
.madp-compare-change__after ins {
    color: #26364e;
    display: block;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 5px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.madp-compare-change__after ins { text-decoration: none; }

.madp-compare-request > strong,
.madp-compare-request > b {
    color: #253752;
    display: block;
    font-size: 11px;
    margin: 8px 0 4px;
}

.madp-compare-request > strong { margin-top: 0; }

.madp-compare-request p,
.madp-compare-request blockquote {
    font-size: 12px;
    line-height: 1.55;
    margin: 5px 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.madp-compare-request blockquote {
    border-left: 2px solid #b9c8d7;
    color: #56667c;
    padding-left: 9px;
}

.madp-compare-request a {
    color: #137d59;
    display: inline-block;
    font-size: 12px;
    margin: 7px 0;
    text-decoration: underline;
}

@media (max-width: 850px) {
    .madp-release-compare-modal { padding: 8px; }
    .madp-release-compare-modal__panel { max-height: 96vh; }
    .madp-release-compare-modal__grid { display: block; }
    .madp-release-compare-modal__changes,
    .madp-release-compare-modal__requests { overflow: visible; padding: 17px; }
    .madp-release-compare-modal__requests { border-left: 0; border-top: 1px solid #e1e7ed; }
    .madp-release-compare-modal__header { padding: 13px 16px; }
    .madp-release-compare-modal__header h2 { font-size: 15px; }
}
