html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

:root {
    --primary: #0969da!important;
    --emphasis-primary: var(--primary)!important;
    --bg-color: #f6f8fa!important;
    --color: #1f2328!important;
    --light: #59636e!important;
    --border: #f6f8fa!important;
    --emphasis: var(--light) !important;
    --surface: #f6f8fa!important;
}

::-webkit-scrollbar {
    height: 6px!important;
    width: 6px!important;
}
::-webkit-scrollbar-track {
    background: white!important;
}
::-webkit-scrollbar-thumb {
    background: #8b8b8b!important;
}
body:not(.dark-mode) #app main {
    border: none;
    border-radius: 0;
}
#app {
    font-size: 0.95rem;
}

/* file / folder view */
body:not(.dark-mode) #app .list > .component_thing.view-list {
    padding: 9px;
    border: 1px solid #d1d9e0;
    border-radius: 0;
    margin-bottom: -3px;
}
body:not(.dark-mode) #app .list > .component_thing.view-list:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
body:not(.dark-mode) #app .list > .component_thing.view-list:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
body:not(.dark-mode) #app .list > .component_thing.view-list img.component_icon {
    width: 16px;
    padding-left: 6px;
}
body:not(.dark-mode) #app .list > .component_thing.view-list:hover .component_filename .file-details > span {
    text-decoration: underline;
    color: var(--primary);
}
body:not(.dark-mode) #app .component_newitem .component_thing {
    border: 1px solid #d1d9e0;
    background: white !important;
    border-radius: 5px;
}
body:not(.dark-mode) #app .component_newitem .component_thing .component_icon {
    width: 18px;
}

body:not(.dark-mode) #app [is="component_filesystem"] {
    margin-top: 10px;
}

/* sidebar */
body:not(.dark-mode) #app [data-bind="sidebar"] {
    border-right: 1px solid #d1d9e0;
    width: 300px;
}
body:not(.dark-mode) #app [data-bind="sidebar"] h3 {
    margin-top: 10px;
    padding-left: 10px;
}
body:not(.dark-mode) #app [data-bind="sidebar"] h3 input::placeholder {
    color: var(--color);
}
body:not(.dark-mode) #app [data-bind="sidebar"] h3 input {
    font-size: 1rem;
}
body:not(.dark-mode) #app [data-bind="sidebar"] h3 img {
    background: #818b9826;
    padding: 7px;
    border-radius: 5px;
    margin-right: 5px;
    filter: brightness(0.5);
}
body:not(.dark-mode) #app [data-bind="sidebar"] a[aria-selected="true"] {
    background: #818b9826!important;
}

/* breadcrumb */
body:not(.dark-mode) #app component-breadcrumb {
    background: #f6f8fa;
    border-bottom: 1px solid #d1d9e0;
}
body:not(.dark-mode) #app .component_separator img { display: none; }
body:not(.dark-mode) #app .component_separator:before {
    content: "/";
    color: #59636e;
    font-weight: normal;
}
body:not(.dark-mode) #app .component_breadcrumb .component_path-element .component_path-element-wrapper {
    font-size: 1rem;
    font-weight: bold;
}
body:not(.dark-mode) #app .component_breadcrumb .component_path-element .component_path-element-wrapper a {
    color: var(--primary);
    font-weight: normal;
}
body:not(.dark-mode) #app .component_breadcrumb .component_path-element .component_path-element-wrapper a:hover div {
    border-bottom: 1px solid var(--primary);
}
body:not(.dark-mode) #app .component_breadcrumb .component_logout img {
    filter: brightness(0.5);
}

/* submenu */
body:not(.dark-mode) #app .scrolling [is="component_submenu"] {
    background: white;
    border-bottom: 1px solid #d1d9e0;
}
body:not(.dark-mode) #app [is="component_submenu"] .component_submenu .action.left button {
    background: #f6f8fa;
    border: 1px solid #d1d9e0;
    margin-right: 5px;
    color: #59636e;
    font-weight: bold;
}
body:not(.dark-mode) #app [is="component_submenu"] .component_submenu .action.right {
    background: #f6f8fa;
    border: 1px solid #d1d9e0;
}
body:not(.dark-mode) #app [is="component_submenu"] .component_submenu .action.right [data-action="view"] {
    display: none;
}
body:not(.dark-mode) #app [is="component_submenu"] .component_submenu .action button img {
    filter: brightness(0.7);
}

/* viewerpage menubar */
body:not(.dark-mode) #app component-menubar {
    background: white;
    border-bottom: 1px solid #d1d9e0;
    box-shadow: none;
}
body:not(.dark-mode) #app .component_menubar .container {
    color: var(--color);
}
body:not(.dark-mode) #app .component_menubar .action-item > * {
    background: #f6f8fa;
    border: 1px solid #d1d9e0;
    margin-left: 5px;
    border-radius: 5px;
}
body:not(.dark-mode) #app .component_menubar .action-item img {
    filter: invert(1) opacity(0.6);
    padding: 3px !important;
}

/* viewerpage */
body:not(.dark-mode) #app .component_imageviewer .component_image_container,
body:not(.dark-mode) #app .component_filedownloader,
body:not(.dark-mode) #app .component_imageviewer .component_image_container .fullscreen .component_pager .wrapper > span {
    background: white;
}
#app .component_imageviewer img.photo {
    box-shadow: none;
}
#app .component_filedownloader .download_button {
    background: var(--light);
}
#app .CodeMirror { font-size: inherit; }

/* upload */
body:not(.dark-mode) #app .component_mobilefileupload input[type="file"] + label {
    background: var(--light);
}
body:not(.dark-mode) .component_mobilefileupload input[type="file"] + label .component_icon {
    filter: invert(1);
    filter: contrast(0.1);
}
body:not(.dark-mode) .component_upload {
    border-top-left-radius: 10px!important;
    border-top-right-radius: 0!important;
    border-top: 1px solid #d1d9e0;
    border-left: 1px solid #d1d9e0;
}