:root {
    --font-family: Inter, Helvetica, Arial;
    --font-family-code: 'Google Sans Code', Consolas, 'Courier New', Courier;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100vw;
    align-items: stretch;
    font-family: var(--font-family), sans-serif;
    background-color: #fff;
    position: relative;
}

code {
    font-family: var(--font-family-code), monospace;
}

header {
    flex-basis: 0;
    flex-shrink: 0;
}

main {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: visible;
    max-width: 100vw;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.app-brand {
    height: 45px;
    opacity: .75;
    transition: opacity .15s ease-in-out;
}

.app-brand:hover {
    opacity: 1;
}

.ͼ1 .cm-scroller {
    font-family: var(--font-family-code), monospace;
    font-size: 14px;
}

.select2-selection {
    border-color: var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius) !important;
    padding: .375rem .75rem !important;
    display: flex !important;
    align-items: center;
    gap: .375rem;
}

.select2-selection__rendered {
    margin-bottom: 0 !important;
    display: inline-flex !important;
    row-gap: 0.375rem;
    flex-wrap: wrap;
}

.select2-selection__choice {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary-text-emphasis);
    border: none !important;
    margin: 0 .375rem 0 0 !important;
    padding: .375rem .75rem !important;
    display: inline-flex !important;
    gap: .375rem;
    align-items: stretch;
}

.select2-selection__choice__remove {
    color: var(--bs-primary-text-emphasis) !important;
    border-right: none !important;
    position: static !important;
    margin-top: -.375rem;
    margin-left: -.75rem;
    margin-bottom: -.375rem;
    width: 1.75rem;
}

.select2-selection__choice__remove:hover {
    color: white !important;
    background-color: var(--bs-primary) !important;
}

.select2-selection__choice__display {
    padding: 0 !important;
}

.select2-search__field {
    margin: 0 !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: unset !important;
}

.modal .select2-container {
    width: 100% !important;
}

.ce-block__content {
    max-width: 100%;
    border: solid 1px transparent;
    border-radius: 7px;
}

.ce-block__content:hover,
.ce-block__content:focus {
    border-color: var(--bs-primary-bg-subtle);
}

.ce-toolbar__content {
    max-width: 100%;
}

.ce-toolbar__actions {
    right: 0;
    background-color: var(--bs-primary-bg-subtle);
    padding: 2px 4px;
    border-radius: 7px;
}

.tox-promotion {
    display: none;
}

.form-check.hoverable:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.form-check.pointable {
    cursor: pointer;
}

main.has-drawer {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
}

#drawer {
    width: 300px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    transition: margin-left 0.3s ease-in-out;
    overflow-y: auto;
    padding: 1rem;
    margin-left: -300px;
}

#drawer.open {
    margin-left: 0;
}

#body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    position: relative;
}

#drawer-toggle {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
}

