.paragraph-inspector {
    overflow: hidden;
    background: #f7f8fb;
    border: 1px solid #e1e5eb;
    border-radius: 7px;
}

.paragraph-position {
    padding: 11px 13px;
    background: #fff8fc;
    border-bottom: 1px solid #efd3e2;
}

.paragraph-position strong,
.paragraph-position span {
    display: block;
}

.paragraph-position strong {
    color: #202635;
    font-size: 11px;
}

.paragraph-position span {
    margin-top: 2px;
    color: #7c8798;
    font-size: 9px;
    line-height: 1.4;
}

.paragraph-diagram {
    --paragraph-left-indent: 0;
    --paragraph-right-indent: 0;
    --paragraph-before: 0;
    --paragraph-after: 0;
    --paragraph-back-color: #fff;
    padding: 11px 13px;
    background: #eef1f6;
    border-bottom: 1px solid #e1e5eb;
}

.paragraph-diagram__distance {
    display: block;
    color: #8791a1;
    font-size: 8px;
    text-align: center;
}

.paragraph-diagram__body {
    margin: 5px 0;
    padding: var(--paragraph-before) 12px var(--paragraph-after);
    background: #fff;
    border: 1px solid #d9dee6;
    box-shadow: 0 4px 12px rgba(24, 35, 53, .06);
}

.paragraph-diagram__content {
    min-height: 44px;
    margin-right: var(--paragraph-right-indent);
    margin-left: var(--paragraph-left-indent);
    padding: 8px;
    background: var(--paragraph-back-color);
    border: 3px double transparent;
    transition: margin .2s ease, padding .2s ease, background-color .2s ease, border-color .2s ease;
}

.paragraph-diagram.has-frame .paragraph-diagram__content {
    border-color: #2f65b0;
}

.paragraph-diagram__content i {
    display: block;
    width: 88%;
    height: 3px;
    background: #617086;
    border-radius: 2px;
}

.paragraph-diagram__content i + i {
    margin-top: 6px;
}

.paragraph-diagram__content i:nth-child(2) {
    width: 72%;
}

.paragraph-diagram__content i:nth-child(3) {
    width: 58%;
}

.paragraph-diagram__content.is-center i {
    margin-right: auto;
    margin-left: auto;
}

.paragraph-diagram__content.is-right i {
    margin-left: auto;
}

.paragraph-diagram__content.is-justify i:not(:last-child) {
    width: 100%;
}

.paragraph-diagram__content.is-mixed i:nth-child(2) {
    margin-right: auto;
    margin-left: auto;
}

.paragraph-diagram__content.is-mixed i:nth-child(3) {
    margin-left: auto;
}

.paragraph-format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.paragraph-format-grid > div {
    min-width: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #e9ecf0;
}

.paragraph-format-grid > div:nth-child(odd) {
    border-right: 1px solid #e9ecf0;
}

.paragraph-format-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.paragraph-format-grid span,
.paragraph-format-grid strong {
    display: block;
}

.paragraph-format-grid span {
    color: #7c8798;
    font-size: 9px;
}

.paragraph-format-grid strong {
    margin-top: 2px;
    overflow: hidden;
    color: #202635;
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.paragraph-format-grid strong.is-mixed {
    color: #a70f62;
    font-style: italic;
}

.paragraph-color-value {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.paragraph-color-value i {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    background: transparent;
    border: 1px solid #cbd2dc;
    border-radius: 2px;
}

.paragraph-color-value b {
    overflow: hidden;
    font-weight: inherit;
    text-overflow: ellipsis;
}

.paragraph-mixed-note {
    margin: 0;
    padding: 8px 10px;
    color: #687386;
    background: #fff8fc;
    border-top: 1px solid #efd3e2;
    font-size: 9px !important;
    line-height: 1.45 !important;
}

.paragraph-mixed-note strong {
    color: #a70f62;
}

.paragraph-controls {
    padding-top: 16px;
    border-top: 1px solid #e1e5eb;
}

.paragraph-controls h3 {
    margin: 0 0 11px;
    color: #202635;
    font-size: 13px;
    font-weight: 700;
}

.paragraph-alignment-control {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid #d90b77;
    border-radius: 999px;
}

.paragraph-alignment-control button {
    min-width: 0;
    padding: 8px 4px;
    color: #a70f62;
    background: #fff;
    border: 0;
    font: inherit;
    font-size: 9px;
    font-weight: 650;
    transition: color .16s ease, background-color .16s ease;
}

.paragraph-alignment-control button + button {
    border-left: 1px solid #efacd1;
}

.paragraph-alignment-control button:hover,
.paragraph-alignment-control button:focus-visible,
.paragraph-alignment-control button.is-active {
    color: #fff;
    background: #c40f70;
}

.paragraph-measurements {
    margin-top: 12px;
}

.paragraph-measurements .demo-field-label--wide {
    grid-column: 1 / -1;
}

.paragraph-controls .demo-action-grid {
    margin-top: 13px;
}

@media (max-width: 575.98px) {
    .paragraph-format-grid {
        grid-template-columns: 1fr;
    }

    .paragraph-format-grid > div,
    .paragraph-format-grid > div:nth-child(odd),
    .paragraph-format-grid > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #e9ecf0;
    }

    .paragraph-format-grid > div:last-child {
        border-bottom: 0;
    }
}
