/* Shared Partner editor layout */

.endo-product-editor,
.endo-product-form,
.endo-article-editor-form {
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.endo-content-workspace {
    width: 100%;
}

.endo-product-editor {
    overflow: hidden;
}

.endo-product-editor.endo-article-editor-form {
    padding: 0;
    overflow: visible;
}

.endo-product-form,
.endo-article-editor-form {
    padding: 28px;
}

/* Editor header */

.endo-product-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 30px 32px 28px;
    background: var(--white);
}

.endo-editor-heading {
    min-width: 0;
    flex: 1 1 auto;
}

.endo-editor-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.endo-editor-heading-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.endo-product-editor-header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(30px, 4vw, 44px);
    line-height: .98;
    letter-spacing: -.055em;
}

.endo-product-editor-header h2 span {
    color: var(--pink);
}

.endo-editor-heading-description {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.endo-editor-status-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.endo-editor-status-list .endo-status-badge {
    margin: 0;
}

.endo-editor-header-actions,
.endo-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.endo-editor-header-actions {
    flex: 0 1 auto;
    flex-wrap: wrap;
}

.endo-editor-save-status {
    min-width: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.endo-editor-save-status:not(:empty)::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: rgba(0, 61, 196, .5);
}

.endo-editor-save-status.is-error {
    color: var(--pink);
}

.endo-editor-save-status.is-error::before {
    background: var(--pink);
}

.endo-editor-primary,
.endo-editor-secondary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 800;
}

.endo-editor-primary {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: var(--white);
}

.endo-editor-primary:hover {
    background: #002f9a;
    transform: translateY(-1px);
}

.endo-editor-secondary {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--text);
}

.endo-editor-secondary:hover {
    border-color: rgba(0, 61, 196, .25);
    background: rgba(0, 61, 196, .035);
    color: var(--blue);
}

.endo-editor-primary:disabled,
.endo-editor-secondary:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
}

/* Protected revision notice */

.endo-editor-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 0 32px 24px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 61, 196, .14);
    border-radius: 20px;
    background: rgba(0, 61, 196, .045);
}

.endo-editor-notice-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--blue);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
}

.endo-editor-notice strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.endo-editor-notice p {
    max-width: 720px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Editor sections */

.endo-editor-section {
    padding: 30px 32px 32px;
    border-top: 1px solid var(--line);
}

.endo-editor-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.endo-editor-section-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.endo-editor-section-header p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.endo-product-editor> :is(.endo-content-review-card,
    .endo-product-review-card,
    .endo-article-review-card),
.endo-article-editor-form> :is(.endo-content-review-card,
    .endo-product-review-card,
    .endo-article-review-card) {
    margin-right: 32px;
    margin-left: 32px;
}

/* Editor media */

.endo-editor-media-grid {
    display: grid;
    grid-template-columns:
        minmax(190px, 1fr) minmax(190px, 1fr) minmax(220px, .8fr);
    gap: 18px;
}

.endo-editor-upload-card,
.endo-editor-preview-card {
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--soft);
}

.endo-editor-upload-card {
    position: relative;
    display: block;
    cursor: pointer;
    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.endo-editor-upload-card:hover {
    border-color: rgba(0, 61, 196, .24);
    background: rgba(0, 61, 196, .035);
    transform: translateY(-1px);
}

.endo-editor-upload-card:focus-within {
    border-color: rgba(0, 61, 196, .34);
    box-shadow: var(--focus-ring);
}

.endo-editor-upload-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.endo-editor-upload-visual img,
.endo-editor-upload-card img {
    width: 100%;
    height: 100%;
    display: block;
    padding: 28px;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.endo-editor-upload-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background:
        linear-gradient(135deg,
            rgba(0, 61, 196, .07),
            rgba(228, 45, 150, .06));
}

.endo-editor-upload-card input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.endo-editor-upload-card>span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: var(--radius-pill);
    background: var(--blue);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.endo-editor-preview-card {
    display: flex;
    align-items: flex-end;
    padding: 22px;
    background: rgba(0, 61, 196, .045);
}

.endo-editor-preview-card>div {
    width: 100%;
}

.endo-editor-preview-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.2;
}

.endo-editor-preview-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.endo-editor-preview-card small {
    display: block;
    margin-top: 10px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

/* Editor fields */

.endo-editor-title-card {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--soft);
    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.endo-editor-title-card:focus-within {
    border-color: rgba(0, 61, 196, .28);
    background: var(--white);
    box-shadow: var(--focus-ring);
}

.endo-editor-title-card label,
.endo-editor-field label,
.endo-form-field label,
.endo-editor-field-full label {
    display: block;
    margin: 0 0 9px;
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.endo-editor-field[hidden] {
    display: none;
}

.endo-editor-title-card input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 850;
    line-height: 1.1;
}

.endo-editor-grid,
.endo-form-grid,
.endo-editor-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.endo-editor-field,
.endo-form-field {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--soft);
    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.endo-editor-field {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.endo-editor-field:focus-within,
.endo-form-field:focus-within {
    border-color: rgba(0, 61, 196, .28);
    background: var(--white);
    box-shadow: var(--focus-ring);
}

.endo-editor-field input,
.endo-form-field input,
.endo-editor-field select,
.endo-form-field select {
    width: 100%;
    min-height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 16px;
}

.endo-editor-field input::placeholder,
.endo-form-field input::placeholder,
.endo-editor-field-full textarea::placeholder {
    color: rgba(90, 90, 90, .72);
}

.endo-editor-field select,
.endo-form-field select {
    min-height: 46px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        linear-gradient(45deg,
            transparent 50%,
            var(--muted) 50%) right 18px center / 6px 6px no-repeat,
        linear-gradient(135deg,
            var(--muted) 50%,
            transparent 50%) right 13px center / 6px 6px no-repeat,
        var(--white);
    appearance: none;
    font-size: 14px;
    font-weight: 750;
}

.endo-editor-field-full {
    margin-bottom: 18px;
}

.endo-editor-field-full textarea {
    width: 100%;
    min-height: 150px;
    padding: 18px 20px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 22px;
    outline: 0;
    background: var(--white);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.endo-editor-field-full textarea:focus {
    border-color: rgba(0, 61, 196, .34);
    box-shadow: var(--focus-ring);
}

.endo-form-field-full {
    grid-column: 1 / -1;
}

.endo-form-field small {
    color: var(--muted);
    font-size: 12px;
}

.endo-form-actions {
    margin-top: 22px;
}

/* Taxonomy options */

.endo-editor-taxonomy-grid {
    margin-top: 0;
}

.endo-editor-taxonomy-grid .endo-editor-field {
    justify-content: flex-start;
    min-height: 160px;
    padding: 22px;
}

.endo-editor-option-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 9px;
    margin-top: 9px;
}

.endo-editor-option {
    position: relative;
    width: auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.endo-editor-option:hover {
    border-color: rgba(0, 61, 196, .25);
    transform: translateY(-1px);
}

.endo-editor-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.endo-editor-option span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.endo-editor-option span::before {
    content: "";
    width: 15px;
    height: 15px;
    display: inline-block;
    border: 1.5px solid rgba(0, 0, 0, .22);
    border-radius: 5px;
    background: var(--white);
    transition:
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.endo-editor-option input:checked+span::before {
    border-color: transparent;
    background: var(--blue);
}

.endo-editor-option input:checked+span::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 50%;
    width: 5px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: translateY(-58%) rotate(45deg);
}

.endo-editor-option:has(input:checked) {
    border-color: rgba(0, 61, 196, .25);
    background: rgba(0, 61, 196, .06);
    color: var(--blue);
}

.endo-editor-empty {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px dashed rgba(0, 0, 0, .14);
    border-radius: 16px;
    background: var(--white);
    color: var(--muted);
    font-size: 13px;
}

.endo-product-editor>.endo-partner-error {
    min-height: 20px;
    margin: 0;
    padding: 0 32px 28px;
    text-align: left;
}

/* Article editor */

.endo-article-editor-form .endo-editor-media-grid {
    grid-template-columns:
        minmax(220px, 1fr) minmax(240px, .8fr);
}

/* Article information */

.endo-article-information-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 3fr) minmax(220px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.endo-article-information-grid .endo-editor-title-card {
    margin-bottom: 0;
}

/* Category */

.endo-article-category-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--soft);
    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.endo-article-category-card:focus-within {
    border-color:
        rgba(0, 61, 196, .28);
    background: var(--white);
    box-shadow: var(--focus-ring);
}

.endo-article-category-card label {
    display: block;
    margin: 0 0 9px;
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.endo-article-category-card select {
    width: 100%;
    min-height: 46px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    outline: 0;
    background:
        linear-gradient(45deg,
            transparent 50%,
            var(--muted) 50%) right 18px center / 6px 6px no-repeat,
        linear-gradient(135deg,
            var(--muted) 50%,
            transparent 50%) right 13px center / 6px 6px no-repeat,
        var(--white);
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    appearance: none;
}

/* Summary */

.endo-article-summary-card {
    min-width: 0;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--soft);
    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.endo-article-summary-card:focus-within {
    border-color: rgba(0, 61, 196, .28);
    background: var(--white);
    box-shadow: var(--focus-ring);
}

.endo-article-summary-card label {
    display: block;
    margin: 0 0 10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.endo-article-summary-card textarea {
    width: 100%;
    flex: 1 1 auto;
    min-height: 130px;
    padding: 0;
    resize: vertical;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
}

.endo-article-summary-card textarea::placeholder {
    color: rgba(90, 90, 90, .72);
}

/* ENDO-managed Tags */

.endo-article-admin-tags-card {
    min-width: 0;
    min-height: 190px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--soft);
}

.endo-article-admin-tags-head {
    margin-bottom: 14px;
}

.endo-article-admin-tags-head>span {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.endo-article-admin-tags-head small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
}

.endo-article-admin-tag-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.endo-article-admin-tag-list li {
    position: relative;
    margin: 0;
    padding: 9px 0 9px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.endo-article-admin-tag-list li:last-child {
    border-bottom: 0;
}

.endo-article-admin-tag-list li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    transform: translateY(-50%);
}

.endo-article-admin-tags-empty {
    margin: auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.endo-article-admin-tag-list {
    max-height: 140px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(0, 61, 196, .22) transparent;
}

.endo-article-admin-tag-list::-webkit-scrollbar {
    width: 5px;
}

.endo-article-admin-tag-list::-webkit-scrollbar-track {
    background: transparent;
}

.endo-article-admin-tag-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 61, 196, .22);
}

/* Writing workspace */

.endo-article-writing-card {
    --article-heading: var(--blue);

    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

@supports (color: color-mix(in srgb,
        black,
        white)) {
    .endo-article-writing-card {
        --article-heading:
            color-mix(in srgb,
                var(--blue) 74%,
                var(--pink) 26%);
    }
}

.endo-article-writing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    border-radius:
        var(--radius) var(--radius) 0 0;
    background: var(--soft);
}

.endo-article-writing-head>div:first-child {
    min-width: 0;
}

.endo-article-writing-head span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.endo-article-writing-head strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

/* Writing metrics */

.endo-article-writing-metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.endo-article-writing-metrics span {
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.endo-article-writing-metrics-divider {
    opacity: .5;
}

/* Writing layout */

.endo-article-writing-layout {
    position: relative;
    display: grid;
    grid-template-columns:
        72px minmax(0, 1fr);
    align-items: stretch;
    min-height: 520px;
}

/* Sticky toolbar */

.endo-article-toolbar {
    position: sticky;
    top: 20px;
    z-index: 8;
    align-self: start;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 10px;
    border-right: 1px solid var(--line);
    background: var(--soft);
}

.endo-article-toolbar-group {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 7px;
}

.endo-article-toolbar-group+.endo-article-toolbar-group {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.endo-article-toolbar-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}

.endo-article-toolbar-button>span {
    display: grid;
    place-items: center;
    line-height: 1;
}

.endo-article-toolbar-button svg {
    display: block;
}

.endo-article-toolbar-button:hover {
    border-color: rgba(0, 61, 196, .12);
    background: var(--white);
    color: var(--blue);
    transform: translateY(-1px);
}

.endo-article-toolbar-button:focus-visible {
    outline: 0;
    border-color: rgba(0, 61, 196, .3);
    box-shadow: var(--focus-ring);
}

.endo-article-toolbar-button.is-active,
.endo-article-toolbar-button[aria-pressed="true"] {
    border-color: rgba(0, 61, 196, .14);
    background: rgba(0, 61, 196, .09);
    color: var(--blue);
}

.endo-article-toolbar-button:disabled {
    cursor: not-allowed;
    opacity: .32;
    transform: none;
}

.endo-article-toolbar-button.is-loading {
    color: transparent;
}

.endo-article-toolbar-button.is-loading::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(0, 61, 196, .2);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation:
        endoArticleEditorSpin .7s linear infinite;
}

/* Article citation picker */

.endo-article-citation-picker {
    position: fixed;
    z-index: 1000;
    width: min(320px, calc(100vw - 24px));
    max-height: min(420px, calc(100vh - 32px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .14);
}

.endo-article-citation-picker[hidden] {
    display: none;
}

.endo-article-citation-picker-head {
    padding: 16px 17px 13px;
    border-bottom: 1px solid var(--line);
}

.endo-article-citation-picker-head strong {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.endo-article-citation-picker-list {
    max-height: 290px;
    overflow-y: auto;
    padding: 7px;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(0, 61, 196, .2) transparent;
}

.endo-article-citation-picker-list::-webkit-scrollbar {
    width: 5px;
}

.endo-article-citation-picker-list::-webkit-scrollbar-track {
    background: transparent;
}

.endo-article-citation-picker-list::-webkit-scrollbar-thumb {
    border-radius: var(--radius-pill);
    background: rgba(0, 61, 196, .2);
}

.endo-article-citation-option {
    width: 100%;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.endo-article-citation-option:hover {
    background: rgba(0, 61, 196, .055);
}

.endo-article-citation-option:focus-visible {
    outline: 0;
    background: rgba(0, 61, 196, .07);
    box-shadow: inset 0 0 0 2px rgba(0, 61, 196, .18);
}

.endo-article-citation-option.is-active {
    background: rgba(0, 61, 196, .08);
    color: var(--blue);
}

.endo-article-citation-option-number {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 61, 196, .08);
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
}

.endo-article-citation-option.is-active .endo-article-citation-option-number {
    background: var(--blue);
    color: var(--white);
}

.endo-article-citation-option-text {
    min-width: 0;
    display: block;
}

.endo-article-citation-option-text strong {
    display: block;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endo-article-citation-option-text small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endo-article-citation-remove {
    width: calc(100% - 14px);
    min-height: 38px;
    margin: 0 7px 7px;
    padding: 0 12px;
    border: 1px solid rgba(253, 121, 226, .24);
    border-radius: 13px;
    background: rgba(253, 121, 226, .07);
    color: var(--pink);
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast);
}

.endo-article-citation-remove:hover {
    border-color: rgba(253, 121, 226, .42);
    background: rgba(253, 121, 226, .12);
}

.endo-article-citation-remove:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 3px rgba(253, 121, 226, .18);
}

/* Inline Article citations */

.endo-article-content-editor [data-endo-reference] {
    padding: 1px 2px;
    border-radius: 4px;
    background:
        linear-gradient(to top,
            rgba(253, 121, 226, .16) 0,
            rgba(253, 121, 226, .16) 42%,
            transparent 42%);
    text-decoration:
        underline dotted rgba(0, 61, 196, .45);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    cursor: help;
    transition:
        background var(--transition-fast),
        text-decoration-color var(--transition-fast);
}

.endo-article-content-editor [data-endo-reference]:hover {
    background:
        linear-gradient(to top,
            rgba(253, 121, 226, .24) 0,
            rgba(253, 121, 226, .24) 48%,
            transparent 48%);
    text-decoration-color: var(--blue);
}

/* Writing surface */

.endo-article-writing-surface {
    min-width: 0;
    background: var(--white);
}

.endo-article-content-editor {
    width: min(100%, 860px);
    min-height: 520px;
    margin: 0 auto;
    padding: 44px 52px 72px;
    outline: 0;
    color: var(--text);
    font-family:
        "Poppins",
        sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.78;
    caret-color: var(--blue);
}

.endo-article-content-editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(90, 90, 90, .62);
    pointer-events: none;
}

/* Editorial typography */

.endo-article-content-editor p {
    margin: 0 0 20px;
}

.endo-article-content-editor h2,
.endo-article-content-editor h3 {
    color: var(--article-heading);
    font-family:
        "Poppins",
        sans-serif;
    font-weight: 750;
    text-wrap: balance;
}

.endo-article-content-editor h2 {
    margin: 48px 0 18px;
    font-size: clamp(27px,
            3vw,
            34px);
    line-height: 1.18;
    letter-spacing: -.035em;
}

.endo-article-content-editor h3 {
    margin: 34px 0 14px;
    font-size: clamp(21px,
            2.4vw,
            25px);
    line-height: 1.25;
    letter-spacing: -.025em;
}

.endo-article-content-editor h2:first-child,
.endo-article-content-editor h3:first-child {
    margin-top: 0;
}

.endo-article-content-editor strong {
    font-weight: 750;
}

.endo-article-content-editor em {
    font-style: italic;
}

/* Lists */

.endo-article-content-editor ul,
.endo-article-content-editor ol {
    margin: 20px 0 24px;
    padding: 0 0 0 28px;
}

.endo-article-content-editor li {
    margin: 0;
    padding: 3px 0 3px 5px;
    line-height: 1.72;
}

.endo-article-content-editor li+li {
    margin-top: 6px;
}

.endo-article-content-editor li::marker {
    color: var(--article-heading);
    font-weight: 750;
}

.endo-article-content-editor ul ul,
.endo-article-content-editor ul ol,
.endo-article-content-editor ol ul,
.endo-article-content-editor ol ol {
    margin: 8px 0 6px;
}

.endo-article-content-editor li>p,
.endo-article-content-editor li>div {
    margin: 0;
}

/* Quote */

.endo-article-content-editor blockquote {
    position: relative;
    margin: 32px 0;
    padding: 20px 24px 20px 26px;
    border: 1px solid rgba(0, 61, 196, .1);
    border-left: 4px solid var(--article-heading);
    border-radius: 0 20px 20px 0;
    background:
        linear-gradient(90deg,
            rgba(0, 61, 196, .055),
            rgba(228, 45, 150, .025));
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.65;
}

.endo-article-content-editor blockquote:first-child {
    margin-top: 0;
}

/* Links */

.endo-article-content-editor a {
    color: var(--blue);
    font-weight: 650;
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    text-decoration-color:
        rgba(0, 61, 196, .32);
}

.endo-article-content-editor a:hover {
    text-decoration-color: currentColor;
}

/* Inline Article images */

.endo-article-content-editor figure,
.endo-article-content-editor .endo-article-content-figure {
    width: 100%;
    margin: 36px 0;
}

.endo-article-content-editor figure img,
.endo-article-content-editor .endo-article-content-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    background: var(--soft);
}

.endo-article-content-editor figcaption {
    min-height: 24px;
    margin-top: 10px;
    outline: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
}

.endo-article-content-editor figcaption:empty::before {
    content: attr(data-placeholder);
    color: rgba(90, 90, 90, .58);
}

.endo-article-content-editor figcaption:focus {
    color: var(--text);
}

/* Inline Article image reordering */

.endo-article-content-editor figure>img,
.endo-article-content-editor .endo-article-content-figure>img {
    cursor: grab;
    user-select: none;
}

.endo-article-content-editor figure>img:active,
.endo-article-content-editor .endo-article-content-figure>img:active {
    cursor: grabbing;
}

.endo-article-content-editor.is-reordering-figure {
    cursor: grabbing;
}

.endo-article-content-editor figure.is-dragging {
    opacity: .42;
}

.endo-article-content-editor figure.is-dragging>img {
    cursor: grabbing;
}

.endo-article-content-editor>.is-figure-drop-before,
.endo-article-content-editor>.is-figure-drop-after {
    position: relative;
}

.endo-article-content-editor>.is-figure-drop-before::before,
.endo-article-content-editor>.is-figure-drop-after::after {
    content: "";
    position: absolute;
    z-index: 6;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--blue);
    box-shadow:
        0 0 0 4px rgba(0, 61, 196, .08);
    pointer-events: none;
}

.endo-article-content-editor>.is-figure-drop-before::before {
    top: -10px;
}

.endo-article-content-editor>.is-figure-drop-after::after {
    bottom: -10px;
}

.endo-article-content-editor>figure.is-figure-drop-before::before {
    top: -20px;
}

.endo-article-content-editor>figure.is-figure-drop-after::after {
    bottom: -20px;
}

/* Selection */

.endo-article-content-editor ::selection {
    background: rgba(0, 61, 196, .15);
}

/* Article references */

.endo-article-references-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--soft);
}

.endo-article-references-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 22px;
}

.endo-article-references-head>div {
    min-width: 0;
}

.endo-article-references-head strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
}

.endo-article-references-head p {
    max-width: 560px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.endo-article-references-head .endo-editor-secondary {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 15px;
    background: var(--white);
    font-size: 12px;
}

.endo-article-reference-list:not(:empty) {
    border-top: 1px solid var(--line);
}

.endo-article-reference-row {
    padding: 22px;
    background: var(--white);
}

.endo-article-reference-row+.endo-article-reference-row {
    border-top: 1px solid var(--line);
}

.endo-article-reference-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.endo-article-reference-number {
    color: var(--blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.endo-article-reference-remove {
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}

.endo-article-reference-remove:hover {
    color: var(--pink);
}

.endo-article-reference-remove:focus-visible {
    color: var(--pink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.endo-article-reference-fields {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 14px;
}

.endo-article-reference-fields label {
    min-width: 0;
    display: block;
}

.endo-article-reference-fields label:last-child {
    grid-column: 1 / -1;
}

.endo-article-reference-fields label>span {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}

.endo-article-reference-fields input {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: var(--soft);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.endo-article-reference-fields input:hover {
    border-color: rgba(0, 61, 196, .16);
}

.endo-article-reference-fields input:focus {
    border-color: rgba(0, 61, 196, .3);
    background: var(--white);
    box-shadow: var(--focus-ring);
}

.endo-article-reference-fields input::placeholder {
    color: rgba(90, 90, 90, .62);
}

.endo-article-reference-row:focus-within .endo-article-reference-number {
    color: var(--pink);
}

/* Review slot */

.endo-article-review-context-slot:empty {
    display: none;
}

/* Editor animation */

@keyframes endoArticleEditorSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Shared content review feedback */

:is(.endo-content-review-card,
    .endo-product-review-card,
    .endo-article-review-card) {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 24px;
    border-radius: 26px;
    box-shadow: none;
    animation:
        endoReviewCardIn var(--transition-slow) both;
}

:is(.endo-content-review-card,
    .endo-product-review-card,
    .endo-article-review-card)::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--blue);
}

:is(.endo-content-review-attention,
    .endo-product-review-attention,
    .endo-article-review-attention) {
    border-color: rgba(228, 45, 150, .2);
    background: rgba(228, 45, 150, .045);
}

:is(.endo-content-review-attention,
    .endo-product-review-attention,
    .endo-article-review-attention,
    .endo-content-review-error,
    .endo-product-review-error,
    .endo-article-review-error)::before {
    background: var(--pink);
}

:is(.endo-content-review-pending,
    .endo-product-review-pending,
    .endo-article-review-pending) {
    border-color: rgba(169, 104, 0, .18);
    background: rgba(169, 104, 0, .045);
}

:is(.endo-content-review-pending,
    .endo-product-review-pending,
    .endo-article-review-pending)::before {
    background: var(--warning);
}

:is(.endo-content-review-approved,
    .endo-product-review-approved,
    .endo-article-review-approved) {
    border-color: rgba(22, 132, 91, .15);
    background: rgba(22, 132, 91, .035);
}

:is(.endo-content-review-approved,
    .endo-product-review-approved,
    .endo-article-review-approved)::before {
    background: var(--success);
}

:is(.endo-content-review-default,
    .endo-product-review-default,
    .endo-article-review-default) {
    background: var(--white);
}

:is(.endo-content-review-head,
    .endo-product-review-head,
    .endo-article-review-head) {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

:is(.endo-content-review-head,
    .endo-product-review-head,
    .endo-article-review-head) h3 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

:is(.endo-content-review-head,
    .endo-product-review-head,
    .endo-article-review-head) .endo-editor-kicker {
    margin-bottom: 7px;
}

:is(.endo-content-review-feedback,
    .endo-product-review-feedback,
    .endo-article-review-feedback) {
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 20px;
    background: var(--white);
}

:is(.endo-content-review-feedback,
    .endo-product-review-feedback,
    .endo-article-review-feedback) p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

:is(.endo-content-review-feedback,
    .endo-product-review-feedback,
    .endo-article-review-feedback) small {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

:is(.endo-content-review-guidance,
    .endo-product-review-guidance,
    .endo-article-review-guidance) {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(228, 45, 150, .08);
    color: var(--pink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

:is(.endo-content-review-history,
    .endo-product-review-history,
    .endo-article-review-history) {
    margin-top: 16px;
    border-top: 1px solid var(--line);
}

:is(.endo-content-review-history,
    .endo-product-review-history,
    .endo-article-review-history) summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 16px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

:is(.endo-content-review-history,
    .endo-product-review-history,
    .endo-article-review-history) summary::-webkit-details-marker {
    display: none;
}

:is(.endo-content-review-history,
    .endo-product-review-history,
    .endo-article-review-history) summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform var(--transition);
}

:is(.endo-content-review-history,
    .endo-product-review-history,
    .endo-article-review-history)[open] summary::after {
    transform: rotate(225deg);
}

:is(.endo-content-review-history,
    .endo-product-review-history,
    .endo-article-review-history) summary span {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: var(--radius-pill);
    background: rgba(0, 61, 196, .08);
    color: var(--blue);
    font-size: 11px;
}

:is(.endo-content-review-events,
    .endo-product-review-events,
    .endo-article-review-events) {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

:is(.endo-content-review-event,
    .endo-product-review-event,
    .endo-article-review-event) {
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

:is(.endo-content-review-event,
    .endo-product-review-event,
    .endo-article-review-event) strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

:is(.endo-content-review-event,
    .endo-product-review-event,
    .endo-article-review-event) small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

:is(.endo-content-review-event,
    .endo-product-review-event,
    .endo-article-review-event) p {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
}

:is(.endo-content-review-loading,
    .endo-product-review-loading,
    .endo-article-review-loading) {
    min-height: 118px;
}

:is(.endo-content-review-loading,
    .endo-product-review-loading,
    .endo-article-review-loading) p {
    margin: 0;
    color: transparent;
}

:is(.endo-content-review-loading,
    .endo-product-review-loading,
    .endo-article-review-loading)::after {
    content: "";
    display: block;
    width: 68%;
    height: 14px;
    margin-top: 18px;
    border-radius: var(--radius-pill);
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, .055),
            rgba(0, 0, 0, .1),
            rgba(0, 0, 0, .055));
    background-size: 220% 100%;
    animation:
        endoReviewSkeleton 1.25s ease infinite;
}

:is(.endo-content-review-error,
    .endo-product-review-error,
    .endo-article-review-error) {
    border-color: rgba(228, 45, 150, .2);
    background: rgba(228, 45, 150, .04);
}

:is(.endo-content-review-error,
    .endo-product-review-error,
    .endo-article-review-error) p {
    margin: 0 0 16px;
    color: var(--pink);
    font-size: 14px;
    line-height: 1.5;
}

/* Editor footer */

.endo-editor-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px 30px;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.endo-editor-back-to-top {
    gap: 8px;
}

.endo-editor-back-to-top svg {
    flex: 0 0 auto;
    transition:
        transform var(--transition);
}

.endo-editor-back-to-top:hover svg {
    transform: translateY(-2px);
}

@keyframes endoReviewCardIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes endoReviewSkeleton {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -100% 0;
    }
}

@media (max-width: 1100px) {
    .endo-editor-media-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .endo-editor-preview-card {
        grid-column: 1 / -1;
        min-height: 170px;
    }
}

@media (max-width: 900px) {

    .endo-article-information-grid {
        grid-template-columns: 1fr;
    }

    .endo-article-category-card,
    .endo-article-admin-tags-card {
        min-height: auto;
    }

    .endo-article-summary-card textarea {
        height: auto;
    }

    .endo-product-editor-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .endo-article-writing-head {
        align-items: flex-start;
    }

    .endo-editor-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .endo-article-writing-layout {
        grid-template-columns: 1fr;
    }

    .endo-article-toolbar {
        position: sticky;
        top: 12px;
        z-index: 12;
        min-height: auto;
        width: calc(100% - 24px);
        max-width: calc(100vw - 48px);
        margin: 12px auto 0;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(245, 245, 245, .96);
        box-shadow:
            0 12px 30px rgba(0, 0, 0, .07);
        backdrop-filter: blur(14px);
        scrollbar-width: none;
    }

    .endo-article-toolbar::-webkit-scrollbar {
        display: none;
    }

    .endo-article-toolbar-group {
        width: auto;
        display: flex;
        flex: 0 0 auto;
        gap: 5px;
    }

    .endo-article-toolbar-group+.endo-article-toolbar-group {
        padding-top: 0;
        padding-left: 8px;
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .endo-article-toolbar-button {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
    }

    .endo-article-content-editor {
        width: min(100%, 760px);
        padding-top: 36px;
    }

    .endo-editor-grid,
    .endo-form-grid,
    .endo-editor-taxonomy-grid,
    .endo-editor-media-grid,
    .endo-article-editor-form .endo-editor-media-grid {
        grid-template-columns: 1fr;
    }

    .endo-editor-preview-card {
        grid-column: auto;
    }
}

@media (max-width: 700px) {

    .endo-product-editor,
    .endo-product-form,
    .endo-article-editor-form {
        border-radius: 24px;
    }

    .endo-product-form,
    .endo-article-editor-form {
        padding: 20px;
    }

    .endo-article-citation-picker {
        width: calc(100vw - 24px);
        max-height: min(360px, calc(100vh - 24px));
        border-radius: 18px;
    }

    .endo-article-citation-picker-list {
        max-height: 240px;
    }

    .endo-product-editor-header {
        gap: 22px;
        padding: 24px 20px;
    }

    .endo-product-editor-header h2 {
        font-size: 34px;
    }

    .endo-editor-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .endo-editor-header-actions,
    .endo-form-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .endo-editor-header-actions>*,
    .endo-form-actions>* {
        width: 100%;
    }

    .endo-editor-save-status {
        min-height: 24px;
        justify-content: flex-start;
    }

    .endo-editor-section {
        padding: 26px 20px;
    }

    .endo-editor-section-header {
        margin-bottom: 20px;
    }

    .endo-editor-notice {
        margin: 0 20px 20px;
        padding: 16px;
    }

    .endo-article-references-head {
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .endo-article-references-head .endo-editor-secondary {
        width: 100%;
    }

    .endo-article-reference-row {
        padding: 18px;
    }

    .endo-article-reference-fields {
        grid-template-columns: 1fr;
    }

    .endo-article-reference-fields label:last-child {
        grid-column: auto;
    }

    .endo-product-editor> :is(.endo-content-review-card,
        .endo-product-review-card,
        .endo-article-review-card),
    .endo-article-editor-form> :is(.endo-content-review-card,
        .endo-product-review-card,
        .endo-article-review-card) {
        margin-right: 20px;
        margin-left: 20px;
        padding: 20px;
        border-radius: 22px;
    }

    .endo-editor-upload-card,
    .endo-editor-preview-card {
        min-height: 190px;
    }

    .endo-editor-upload-placeholder {
        min-height: 190px;
    }

    .endo-editor-title-card,
    .endo-editor-field,
    .endo-form-field,
    .endo-editor-field-full textarea {
        border-radius: 20px;
    }

    .endo-product-editor>.endo-partner-error {
        padding-right: 20px;
        padding-bottom: 24px;
        padding-left: 20px;
    }

    :is(.endo-content-review-head,
        .endo-product-review-head,
        .endo-article-review-head) {
        flex-direction: column;
        gap: 12px;
    }

    :is(.endo-content-review-feedback,
        .endo-product-review-feedback,
        .endo-article-review-feedback) {
        padding: 16px;
    }

    .endo-article-writing-card {
        border-radius: 22px;
    }

    .endo-article-writing-head {
        gap: 8px;
        padding: 16px 18px;
        border-radius: 22px 22px 0 0;
    }

    .endo-article-writing-metrics {
        width: 100%;
    }

    .endo-article-toolbar {
        top: 8px;
        width: calc(100% - 16px);
        max-width: calc(100vw - 32px);
        margin-top: 8px;
    }

    .endo-article-content-editor {
        min-height: 460px;
        padding: 30px 22px 54px;
        font-size: 16px;
        line-height: 1.72;
    }

    .endo-article-content-editor h2 {
        margin-top: 38px;
        font-size: 27px;
    }

    .endo-article-content-editor h3 {
        margin-top: 28px;
        font-size: 21px;
    }

    .endo-article-content-editor blockquote {
        margin: 26px 0;
        padding: 18px 18px 18px 20px;
        font-size: 16px;
    }

    .endo-article-content-editor figure,
    .endo-article-content-editor .endo-article-content-figure {
        margin: 28px 0;
    }

    .endo-article-content-editor figure img,
    .endo-article-content-editor .endo-article-content-figure img {
        border-radius: 18px;
    }

    .endo-editor-footer {
        padding: 22px 20px 26px;
    }

    .endo-editor-back-to-top {
        width: 100%;
    }
}