@media (prefers-color-scheme: dark) {
    body {
        background-color: #1B2125 !important;
        color: #d3d7e6;
    }

    .mention {
        background-color: #4C9AFF;
        color: #19212A;
    }

    th {
        background-color: rgb(33, 39, 44);
    }

    table.confluenceTable th.confluenceTh,
    table.confluenceTable th.confluenceTh > p,
    table.confluenceTable td.confluenceTd.highlight,
    table.confluenceTable td.confluenceTd.highlight > p,
    table.confluenceTable th.confluenceTh.highlight-grey,
    table.confluenceTable th.confluenceTh.highlight-grey > p,
    table.confluenceTable td.confluenceTd.highlight-grey,
    table.confluenceTable td.confluenceTd.highlight-grey > p {
        background-color: rgb(33, 39, 44) !important;
    }

    [data-highlight-colour="#f4f5f7"],
    [data-highlight-colour="#f4f5f7"] p {
        background-color: #1f1f1f !important;
    }

    [data-highlight-colour="#fffae6"],
    [data-highlight-colour="#fffae6"] p {
        background-color: #1f1f1f !important;
    }

    .pagetitle,
    .steptitle,
    .substeptitle,
    .formtitle,
    table.confluenceTable td.confluenceTd.highlight,
    table.confluenceTable td.confluenceTd.highlight > p,
    table.confluenceTable th.confluenceTh,
    table.confluenceTable th.confluenceTh > p,
    .wiki-content .tablesorter-header-inner,
    table.admin th,
    .form-element-large,
    .form-element-small,
    #toolbar #format-dropdown .format-h1 a,
    #toolbar #format-dropdown .format-h2 a,
    #toolbar #format-dropdown .format-h3 a,
    #toolbar #format-dropdown .format-h4 a,
    #toolbar #format-dropdown .format-h5 a {
        color: #d3d7e6;
    }

    table.confluenceTable,
    td,
    th {
        border-color: #3E4B55;
    }

    table.aui > tbody > tr > th {
        color: rgb(185, 195, 212);
    }

    table.aui > tbody > tr,
    table.aui > tfoot > tr {
        background: #1d1d1d;
        border-bottom: 1px solid #3E4B55;
        color: rgb(220, 220, 220);
    }

    .pm-table-container > table, .pm-table-wrapper > table {
        border-color: #3E4B55 !important;
    }

    .numberingColumn {
        background-color: #2f2f2f;
        color: rgb(184, 192, 208);
    }

    .code.panel.pdl.conf-macro.output-block {
        text-shadow: none;
    }

    code[class*=language-],
    pre[class*=language-] {
        text-shadow: none;
    }

    .panel {
        border-color: black;
        color: #d3d7e6;
        background-color: #2a2a2a;
    }

    .confluence-information-macro {
        color: #d3d7e6;
    }

    .confluence-information-macro-information {
        background-color: #082145;
    }

    .confluence-information-macro-tip {
        background: #133527;
    }

    .confluence-information-macro-note {
        background: #3D2E00;
    }

    .confluence-information-macro-warning {
        background: #391813;
    }

    .note-panel {
        background-color: #231C3F;
    }

    .wiki-content a,
    .wiki-content a:link,
    .wiki-content a:visited,
    .wiki-content a:focus,
    .wiki-content a:hover,
    .wiki-content a:active {
        color: rgb(123, 176, 255);
    }

    .light-color {
        color: #d3d7e6 !important;
    }

    .recently-updated-concise .update-item-meta {
        color: #c1c1c1;
    }

    .more-link-container {
        border-top: 1px solid #4a4a4a;
    }

    hr {
        border-bottom: 2px solid #3e4b55 !important;
    }

    .comment-description h1,
    .comment-description h2,
    .comment-description h3,
    .comment-description h4,
    .comment-description h5,
    .comment-description h6 {
        margin-top: 12px;
    }

    .css-1u2h4x2 hr {
        background-color: #3E4B55;
    }

    form.aui .text,
    form.aui .password,
    form.aui .textarea,
    form.aui .select,
    form.aui .multi-select,
    form.aui .aui-select2-container .select2-choices {
        border: 1px solid #3a3a3a;
    }

    form.aui .text,
    form.aui .password,
    form.aui .upfile,
    form.aui .textarea,
    form.aui .select,
    form.aui .multi-select,
    form.aui .aui-select2-container {
        background: #272727;
        color: rgb(226, 226, 226);
    }

    .search-macro-large .search-macro-query input:focus-within {
        background-color: #292929;
    }

    .group-label,
    .comment-title-date {
        color: rgb(135, 149, 173);
    }

    .expand-container,
    .expand-container:hover {
        background: rgb(255, 255, 255, 21%);
    }


    .expand-container {
        border-color: #888;
    }

    .expand-control {
        color: inherit;
    }

    code, kbd {
        background-color: #313940;
    }

    blockquote {
        color: #b3b3b3;
    }

    .aui-label {
        background: #2f2f2f;
        border: 1px solid #4e4e4e;
    }

    .tableBorder,
    .grid {
        background-color: #0c0c0c;
    }

    .smalltext {
        color: #bbbbbb;
    }

    a.disabled-link {
        color: #888 !important;
    }

    table.spaceList {
        border-bottom: 1px solid #545454;
    }

    .aui-tabs.horizontal-tabs > .tabs-menu ~ .tabs-pane {
        border-top: 1px solid #545454;
    }

    .icon-space {
        opacity: 0.7;
    }

    .gallery.conf-macro tbody {
        border-bottom: 2px solid #5f5f5f;
    }

    .panelHeader {
        padding: 10px;
        border-bottom: 1px solid #545454;
        background-color: #1f1f1f;
    }

    .aui-button,
    a.aui-button, .aui-button:visited {
        background: #212121;
        border: 1px solid #404040;
        color: rgb(252, 253, 255);
    }

    .aui-button:active,
    .aui-button.active,
    .aui-header .aui-button-split-more.active,
    .aui-button-subtle.aui-button:active,
    .aui-button-subtle.aui-button.active {
        background: #5b5b5b;
    }

    .aui-button:focus,
    .aui-button:hover,
    .aui-button-subtle.aui-button:focus,
    .aui-button-subtle.aui-button:hover {
        background: #2d2d2d;
        border: 1px solid #444444;
        color: #fff;
    }

    .aui-button .aui-icon {
        color: #e8e8e8;
    }

    .attachments .attachment-row {
        border-top: 1px solid #545454;
    }

    .icon-file-excel97-template,
    .icon-file-excel97,
    .icon-file-excel-macro,
    .icon-file-excel,
    .icon-file-excel-template,
    div.content-type-attachment-excel97,
    span.content-type-attachment-excel97,
    a.content-type-attachment-excel97 span,
    div.content-type-attachment-excel,
    span.content-type-attachment-excel,
    a.content-type-attachment-excel span {
        opacity: 0.7;
    }

    .icon-file-powerpoint97-template,
    .icon-file-powerpoint97,
    .icon-file-powerpoint,
    .icon-file-powerpoint-macro,
    .icon-file-powerpoint-slideshow,
    .icon-file-powerpoint-template,
    div.content-type-attachment-powerpoint97,
    span.content-type-attachment-powerpoint97,
    a.content-type-attachment-powerpoint97 span,
    div.content-type-attachment-powerpoint,
    span.content-type-attachment-powerpoint,
    a.content-type-attachment-powerpoint span {
        opacity: 0.7;
    }

    .icon-file-word97-template,
    .icon-file-word97,
    .icon-file-word,
    .icon-file-word-template,
    div.content-type-attachment-word97,
    span.content-type-attachment-word97,
    a.content-type-attachment-word97 span,
    div.content-type-attachment-word,
    span.content-type-attachment-word,
    a.content-type-attachment-word span {
        opacity: 0.7;
    }

    a.content-type-attachment-pdf span,
    div.content-type-attachment-pdf,
    span.content-type-attachment-pdf,
    .icon-file-pdf {
        opacity: 0.7;
    }

    ul.updates-no-pics li {
        border-bottom: 1px solid #545454;
    }

    ul.results-container.updates-no-pics li:hover {
        background-color: #252525;
    }

    .aui-tabs > .tabs-menu .menu-item.active-tab a,
    .aui-tabs > .tabs-menu .menu-item.active-tab a:link,
    .aui-tabs > .tabs-menu .menu-item.active-tab a:visited,
    .aui-tabs > .tabs-menu .menu-item.active-tab a:focus,
    .aui-tabs > .tabs-menu .menu-item.active-tab a:hover,
    .aui-tabs > .tabs-menu .menu-item.active-tab a:active {
        background: #151515;
        color: rgb(211, 221, 236);
    }

    .aui-tabs.horizontal-tabs > .tabs-menu > .menu-item.active-tab,
    .aui-tabs.horizontal-tabs[data-aui-responsive] > .tabs-menu > .menu-item.active-tab,
    .aui-tabs.aui-tabs-disabled.horizontal-tabs > .tabs-menu > .active-tab:focus,
    .aui-tabs.aui-tabs-disabled.horizontal-tabs > .tabs-menu > .active-tab:hover,
    .aui-tabs.aui-tabs-disabled.horizontal-tabs > .tabs-menu > .active-tab:active {
        border-bottom: 1px solid #151515;
    }

    .aui-tabs.horizontal-tabs > .tabs-menu > .menu-item {
        background: #151515;
    }

    .aui-tabs.horizontal-tabs > .tabs-menu > .menu-item:first-child a {
        border-left: 1px solid #545454;
    }

    .aui-tabs > .tabs-menu .menu-item a,
    .aui-tabs > .tabs-menu .menu-item a:link,
    .aui-tabs > .tabs-menu .menu-item a:visited {
        background: #424040;
        color: rgb(210, 220, 235);
    }

    .aui-tabs.horizontal-tabs > .tabs-menu > .menu-item > a,
    .aui-tabs.aui-tabs-disabled.horizontal-tabs > .tabs-menu > .menu-item > a:focus,
    .aui-tabs.aui-tabs-disabled.horizontal-tabs > .tabs-menu > .menu-item > a:hover,
    .aui-tabs.aui-tabs-disabled.horizontal-tabs > .tabs-menu > .menu-item > a:active {
        border-right: 1px solid #545454;
        border-top: 1px solid #545454;
    }

    .aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]) > .tabs-menu > .menu-item {
        border-bottom: 1px solid #545454;
    }

    ::-webkit-input-placeholder {
        color: #b2bcc4;
    }

    :-moz-placeholder {
        color: #b2bcc4;
    }

    ::-moz-placeholder {
        color: #b2bcc4;
    }

    :-ms-input-placeholder {
        color: #b2bcc4;
    }

    .aui-lozenge {
        color: #B3C0CE;
        background: #21272C;
    }

    .aui-lozenge-success {
        color: #7EE2B8;
        background: #133527;
    }

    .aui-lozenge-error {
        color: #FF9C8F;
        background: #391813;
    }

    .aui-lozenge-current {
        color: #F5CD47;
        background: #3D2E00;
    }

    .aui-lozenge-progress {
        color: #B8ACF6;
        background-color: #231C3F;
    }

    .aui-lozenge-complete {
        color: #85B8FF;
        background-color: #082145;
    }

}
