.ovsb-css-mgmt {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 16px;
    box-sizing: border-box;
}

.ovsb-css-mgmt p {
    margin-block-start: 0px;
    margin-block-end: 0px;
}

.ovsb-css-mgmt * {
    box-sizing: border-box;
}

.ovsb-css-mgmt__left {
    width: 300px;
    flex-shrink: 0;
    max-height: calc(85vh + 32px);
    overflow: auto;
}

.ovsb-css-mgmt__left .ovsb-css-mgmt__controlbar {
    position: sticky;
    top: 0;
}

.ovsb-css-mgmt__right {
    flex-grow: 1;
}

.ovsb-css-mgmt__right--fullscreen {
    position: fixed;
    inset: 0;
    z-index: 999999;
	height: calc(100vh - 32px);
}

.ovsb-css-mgmt__right--fullscreen .cm-editor {
    height: calc(100vh - 32px) !important; 
}

.ovsb-css-mgmt__right .cm-editor .cm-activeLine {
    outline: 1px solid black;
    background: transparent;
}

.ovsb-css-mgmt__controlbar {
    background-color: #1d2327;
    color: white;
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    position: relative;
}

.ovsb-css-mgmt__controlbar > p {
    margin-right: auto;
}

.ovsb-css-mgmt__controlbar button {
    border: none;
    background-color: rgba(0,0,0,0);
    color: white;
    height: 100%;
    padding: 4px 16px;
    cursor: pointer;
    transition: 0.2s all ease-in-out;
    width: 33.33%;
}

.ovsb-css-mgmt__settings-popup {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
    background: #1d2327;
}

.ovsb-css-mgmt__right .ovsb-css-mgmt__controlbar button {
    width: auto;
}

.ovsb-css-mgmt__controlbar .ovsb-css-mgmt__settings-popup button {
    width: 100%;
    margin: 0 0;
}

.ovsb-css-mgmt__controlbar .ovsb-css-mgmt__hotreload {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    width: auto;
}

.ovsb-css-mgmt__controlbar button:hover {
    background: rgba(0,0,0,1);
}

.ovsb-css-mgmt__controlbar p {
    padding: 4px 16px;
}

.ovsb-css-mgmt__controlbar .ovsb-css-mgmt__theme-chooser {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 4px 16px;
}

.ovsb-css-mgmt__theme-chooser select {
    font-size: 12px;
    min-height: 0;
}

.ovsb-css-mgmt__list {
    margin-block-start: 0px;
    margin-block-end: 0px;
    list-style-type: none;
    min-height: calc(100% - 32px);
    overflow: auto;
    background: white;
}

.ovsb-css-mgmt__item {
    display: flex;
    flex-wrap: nowrap;
    padding: 8px;
    margin-bottom: 0px;
}

.ovsb-css-mgmt__item::before {
    margin-right: 4px;
}

.ovsb-css-mgmt__item:hover {
    background: #EFEFEF;
    cursor: pointer;
}

.ovsb-css-mgmt__item + .ovsb-css-mgmt__item {
    border-top: 1px solid #EFEFEF;
}

.ovsb-css-mgmt__item--selected {
    background-color: #EFEFEF;
}

.ovsb-css-mgmt__toggle-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 42px;
    padding: 4px;
    background: black;
    border: 1px solid #efefef;
    border-radius: 14px;
    margin-left: auto;
}

.ovsb-css-mgmt__toggle-wrapper--on {
    background: #1ed14b;
    justify-content: flex-end;
}

.ovsb-css-mgmt__toggle-circle {
    height: 14px;
    width: 14px;
    border-radius: 100%;
    background: #efefef;
    mix-blend-mode: difference;
    filter: contrast(0);
}


.ovsb-css-mgmt-saving-notice,
.ovsb-css-mgmt-saved-notice {
    width: 120px;
    display: none;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    padding: 10px 20px;
    position: fixed;
    top: 40%;
    left: 50%;
    z-index: 1000000;
    border-radius: 4px;
    background-color: #1D2327;
}

@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;} 
} 
.ovsb-css-mgmt-saving-notice-show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation-name: fadeIn;
    animation-duration: 0.3s;
}

@keyframes fadeInNOut {
    0% {opacity: 0;}
    10% {opacity: 1;}
    40% {opacity: 1;}
    100% {opacity: 0;} 
} 
.ovsb-css-mgmt-saved-notice-show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation-name: fadeInNOut;
    animation-duration: 3s;
}
.ovsb-css-mgmt-disabled.ovsb-css-mgmt-disabled {
    pointer-events: none;
    opacity: 0.3;
}
.cm-editor {
    height: 100%;
}
.cm-editor .cm-activeLine {
  outline: 1px solid black;
  background: transparent;
}

.cm-editor .cm-search {
  background: var(--oxy-dark-transparent);
  color: var(--oxy-light-text);
  font-size: 18px;
}

.cm-editor .cm-search button[name="close"] {
  color: var(--oxy-light-text);
}

.cm-editor .cm-button {
  background: none;
  border-radius: var(--oxy-border-radius);
  background-color: var(--oxy-dark-transparent);
}

.cm-editor .cm-search input {
  border-radius: var(--oxy-border-radius);
  background-color: var(--oxy-dark-transparent);
}

.cm-editor .cm-search button[name="close"] {
  width: 32px;
  aspect-ratio: 1 / 1;
  border-top-left-radius: var(--oxy-border-radius);
  border-bottom-left-radius: var(--oxy-border-radius);
  height: 100%;
  right: 0px !important;
}

.cm-editor .cm-tooltip-autocomplete > ul > li[aria-selected="true"] {
    color: white !important;
    background: black !important;
}