.page-discovery > .discovery-editor .view-editor-form {
    margin:
        12px
        calc(-1 * var(--discovery-page-padding-right))
        12px
        calc(-1 * var(--discovery-page-padding-left));
}

.page-discovery > .discovery-editor .view-editor-form-header {
    display: flex;
    flex-wrap: wrap-reverse;
    margin-right: var(--discovery-page-padding-right);
}
.page-discovery > .discovery-editor .view-editor-form-header-links {
    flex: 1;
    margin: 2px 0 0 10px;
    text-align: right;
    font-size: 12px;
}

.page-discovery > .discovery-editor .discovery-editor-tabs.view-mode::before {
    display: inline-block;
    content: 'View:';
}
.page-discovery > .discovery-editor .discovery-editor-tab[data-mode="default"] {
    border-top-left-radius: 4px;
}
.page-discovery > .discovery-editor .view-editor-form:not(.hide-editor) .discovery-editor-tab[data-mode="default"] {
    border-bottom-left-radius: 0;
}
.page-discovery > .discovery-editor .discovery-editor-tab[data-mode="custom"] {
    cursor: pointer;
}
.page-discovery > .discovery-editor .view-editor-form:not(.hide-editor) .discovery-editor-tab[data-mode="custom"] {
    border-bottom-right-radius: 0;
    padding-bottom: 3px;
}
.page-discovery > .discovery-editor .discovery-editor-tabs .discovery-editor-tab:not(.active) .show-view-editor-toggle {
    pointer-events: none;
}
.page-discovery > .discovery-editor .discovery-editor-tabs .show-view-editor-toggle {
    display: inline-block;
    vertical-align: middle;
    margin: -3px -9px -7px 1px;
    cursor: pointer;
}
.page-discovery > .discovery-editor .discovery-editor-tabs .show-view-editor-toggle::before {
    content: '';
    display: inline-block;
    width: 20px;
    aspect-ratio: 1;
    mask: url('./img/minus.svg') center no-repeat;
    mask-size: 12px;
    background-color: light-dark(#aaa, #aaac);
}
.page-discovery > .discovery-editor .discovery-editor-tabs .discovery-editor-tab.active:hover .show-view-editor-toggle::before {
    background-color: white;
    background-color: light-dark(rgba(0, 141, 255, 1), #ccc);
}
.page-discovery > .discovery-editor .view-editor-form.hide-editor .discovery-editor-tabs .show-view-editor-toggle::before {
    mask-image: url('./img/plus.svg')
}
.page-discovery > .discovery-editor .discovery-editor-tabs.presets {
    margin-left: 3ex;
}
.page-discovery > .discovery-editor .discovery-editor-tabs.presets::before {
    content: 'View presets:'
}
.page-discovery > .discovery-editor .discovery-editor-tabs.presets .discovery-editor-tab:first-child {
    border-bottom-left-radius: 4px;
}

.page-discovery > .discovery-editor .view-editor-form.hide-editor .view-editor-form-content {
    display: none;
}
.page-discovery > .discovery-editor .view-editor-form-content {
    padding:
        8px
        var(--discovery-page-padding-right)
        8px
        var(--discovery-page-padding-left);
    margin-bottom: 1px;
    background-color: rgba(108, 188, 241, 0.15)
}
.page-discovery > .discovery-editor .view-editor-form-content .formatting {
    position: absolute;
    left: 5px;
    width: 30px;
    height: 30px;
    font-size: 0;
    background-image: url('./img/formatting.svg');
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
    border-color: rgba(21, 98, 148, 0.3);
}

.page-discovery > .discovery-editor .view-editor-form-content .view-expand {
    width: 100%;
    margin-top: 5px;
}

.page-discovery > .discovery-editor .view-editor-form-content .view-expand .header {
    background: none;
}
.page-discovery > .discovery-editor .view-editor-form-content .view-expand .header:hover {
    background: rgba(0, 0, 0, .05);
}

.page-discovery > .discovery-editor .view-editor-form-content .view-editor-view-list {
    display: none;
    padding: 15px 8px;
    font-size: 12px;
    color: #aaa;
    column-count: 8;
    column-width: 150px;
    column-gap: 20px;
    margin-right: -190px;
}
.page-discovery > .discovery-editor .view-editor-form-content .view-editor-view-list.visible {
    display: block;
}
.page-discovery > .discovery-editor .view-editor-form-content .view-editor-view-list .item:not([href]) {
    color: #888;
}

.discovery-view-popup.view-editor-view-list-hint {
    padding: 20px;
    min-width: 640px;
    min-height: 100px;
}
.discovery-view-popup.view-editor-view-list-hint > .discovery-view-usage > .view-header:first-child {
    font-size: 16px;
    background: rgba(180, 180, 180, 0.2);
    margin: -36px -20px 0;
    padding: 6px 20px;
    line-height: 24px;
}
