:root {
    --titlesearch-primary-color: #5468ff;
    --titlesearch-text-color: #1c1e21;
    --titlesearch-spacing: 12px;
    --titlesearch-icon-stroke-width: 1.4;
    --titlesearch-highlight-color: var(--titlesearch-primary-color);
    --titlesearch-muted-color: #969faf;
    --titlesearch-container-background: rgba(101,108,133,0.8);
    --titlesearch-logo-color: #5468ff;
    --titlesearch-modal-width: 560px;
    --titlesearch-modal-height: 600px;
    --titlesearch-modal-background: #f5f6f7;
    --titlesearch-modal-shadow: inset 1px 1px 0 0 hsla(0,0%,100%,0.5),0 3px 8px 0 #555a64;
    --titlesearch-searchbox-height: 56px;
    --titlesearch-searchbox-background: #ebedf0;
    --titlesearch-searchbox-focus-background: #fff;
    --titlesearch-searchbox-shadow: inset 0 0 0 2px var(--titlesearch-primary-color);
    --titlesearch-hit-height: 56px;
    --titlesearch-hit-color: #444950;
    --titlesearch-hit-active-color: #fff;
    --titlesearch-hit-background: #fff;
    --titlesearch-hit-shadow: 0 1px 3px 0 #d4d9e1;
    --titlesearch-key-gradient: linear-gradient(-225deg,#d5dbe4,#f8f8f8);
    --titlesearch-key-shadow: inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,0.4);
    --titlesearch-footer-height: 44px;
    --titlesearch-footer-background: #fff;
    --titlesearch-footer-shadow: 0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,0.12)
}

html[data-theme=dark] {
    --titlesearch-text-color: #f5f6f7;
    --titlesearch-container-background: rgba(9,10,17,0.8);
    --titlesearch-modal-background: #15172a;
    --titlesearch-modal-shadow: inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;
    --titlesearch-searchbox-background: #090a11;
    --titlesearch-searchbox-focus-background: #000;
    --titlesearch-hit-color: #bec3c9;
    --titlesearch-hit-shadow: none;
    --titlesearch-hit-background: #090a11;
    --titlesearch-key-gradient: linear-gradient(-26.5deg,#565872,#31355b);
    --titlesearch-key-shadow: inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,0.3);
    --titlesearch-footer-background: #1e2136;
    --titlesearch-footer-shadow: inset 0 1px 0 0 rgba(73,76,106,0.5),0 -4px 8px 0 rgba(0,0,0,0.2);
    --titlesearch-logo-color: #fff;
    --titlesearch-muted-color: #7f8497
}

.TitleSearch-Button {
    align-items: center;
    background: var(--titlesearch-searchbox-background);
    border: 0;
    border-radius: 40px;
    color: var(--titlesearch-muted-color);
    cursor: pointer;
    display: flex;
    font-weight: 500;
    height: 36px;
    justify-content: space-between;
    margin: 0 0 0 16px;
    padding: 0 8px;
    user-select: none
}

.TitleSearch-Button:active,.TitleSearch-Button:focus,.TitleSearch-Button:hover {
    background: var(--titlesearch-searchbox-focus-background);
    box-shadow: var(--titlesearch-searchbox-shadow);
    color: var(--titlesearch-text-color);
    outline: none
}

.TitleSearch-Button-Container {
    align-items: center;
    display: flex
}

.TitleSearch-Search-Icon {
    stroke-width: 1.6
}

.TitleSearch-Button .TitleSearch-Search-Icon {
    color: var(--titlesearch-text-color)
}

.TitleSearch-Button-Placeholder {
    font-size: 1rem;
    padding: 0 12px 0 6px
}

.TitleSearch-Button-Keys {
    display: flex;
    min-width: calc(40px + .8em)
}

.TitleSearch-Button-Key {
    align-items: center;
    background: var(--titlesearch-key-gradient);
    border-radius: 3px;
    box-shadow: var(--titlesearch-key-shadow);
    color: var(--titlesearch-muted-color);
    display: flex;
    height: 18px;
    justify-content: center;
    margin-right: .4em;
    position: relative;
    padding: 0 0 2px;
    border: 0;
    top: -1px;
    width: 20px
}

@media (max-width: 768px) {
    .TitleSearch-Button-Keys,.TitleSearch-Button-Placeholder {
        display:none
    }
}

.TitleSearch--active {
    overflow: hidden!important
}

.TitleSearch-Container,.TitleSearch-Container * {
    box-sizing: border-box
}

.TitleSearch-Container {
    background-color: var(--titlesearch-container-background);
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 200
}

.TitleSearch-Container a {
    text-decoration: none
}

.TitleSearch-Link {
    appearance: none;
    background: none;
    border: 0;
    color: var(--titlesearch-highlight-color);
    cursor: pointer;
    font: inherit;
    margin: 0;
    padding: 0
}

.TitleSearch-Modal {
    background: var(--titlesearch-modal-background);
    border-radius: 6px;
    box-shadow: var(--titlesearch-modal-shadow);
    flex-direction: column;
    margin: 60px auto auto;
    max-width: var(--titlesearch-modal-width);
    position: relative
}

.TitleSearch-SearchBar {
    display: flex;
    padding: var(--titlesearch-spacing) var(--titlesearch-spacing) 0
}

.TitleSearch-Form {
    align-items: center;
    background: var(--titlesearch-searchbox-focus-background);
    border-radius: 4px;
    /*box-shadow: var(--titlesearch-searchbox-shadow);*/
    display: flex;
    height: var(--titlesearch-searchbox-height);
    margin: 0;
    padding: 0 var(--titlesearch-spacing);
    position: relative;
    width: 100%
}

.TitleSearch-Input {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--titlesearch-text-color);
    flex: 1;
    font: inherit;
    font-size: 1.2em;
    height: 100%;
    outline: none;
    padding: 0 0 0 8px;
    width: 80%
}

.TitleSearch-Input::placeholder {
    color: var(--titlesearch-muted-color);
    opacity: 1
}

.TitleSearch-Input::-webkit-search-cancel-button,.TitleSearch-Input::-webkit-search-decoration,.TitleSearch-Input::-webkit-search-results-button,.TitleSearch-Input::-webkit-search-results-decoration {
    display: none
}

.TitleSearch-LoadingIndicator,.TitleSearch-MagnifierLabel,.TitleSearch-Lookup {
    margin: 0;
    padding: 0
}

.TitleSearch-MagnifierLabel,.TitleSearch-Lookup {
    align-items: center;
    color: var(--titlesearch-highlight-color);
    display: flex;
    justify-content: center
}

.TitleSearch-Container--Stalled .TitleSearch-MagnifierLabel,.TitleSearch-LoadingIndicator {
    display: none
}

.TitleSearch-Container--Stalled .TitleSearch-LoadingIndicator {
    align-items: center;
    color: var(--titlesearch-highlight-color);
    display: flex;
    justify-content: center
}

@media screen and (prefers-reduced-motion:reduce) {
    .TitleSearch-Lookup {
        animation: none;
        appearance: none;
        background: none;
        border: 0;
        border-radius: 50%;
        color: var(--titlesearch-icon-color);
        cursor: pointer;
        right: 0;
        stroke-width: var(--titlesearch-icon-stroke-width)
    }
}

.TitleSearch-Lookup {
    animation: fade-in .1s ease-in forwards;
    appearance: none;
    background: none;
    border: 0;
    border-radius: 50%;
    color: var(--titlesearch-icon-color);
    cursor: pointer;
    padding: 2px;
    right: 0;
    stroke-width: var(--titlesearch-icon-stroke-width)
}

.TitleSearch-Lookup:hover {
    color: var(--titlesearch-highlight-color)
}

.TitleSearch-LoadingIndicator svg,.TitleSearch-MagnifierLabel svg {
    height: 24px;
    width: 24px
}

.TitleSearch-Cancel {
    display: none
}

.TitleSearch-Dropdown {
    max-height: calc(var(--titlesearch-modal-height) - var(--titlesearch-searchbox-height) - var(--titlesearch-spacing) - var(--titlesearch-footer-height));
    min-height: var(--titlesearch-spacing);
    overflow-y: auto;
    overflow-y: overlay;
    padding: 0 var(--titlesearch-spacing);
    scrollbar-color: var(--titlesearch-muted-color) var(--titlesearch-modal-background);
    scrollbar-width: thin
}

.TitleSearch-Dropdown::-webkit-scrollbar {
    width: 12px
}

.TitleSearch-Dropdown::-webkit-scrollbar-track {
    background: transparent
}

.TitleSearch-Dropdown::-webkit-scrollbar-thumb {
    background-color: var(--titlesearch-muted-color);
    border: 3px solid var(--titlesearch-modal-background);
    border-radius: 20px
}

.TitleSearch-Dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.TitleSearch-Label {
    font-size: .75em;
    line-height: 1.6em
}

.TitleSearch-Help,.TitleSearch-Label {
    color: var(--titlesearch-muted-color)
}

.TitleSearch-Help {
    font-size: .9em;
    margin: 0;
    user-select: none
}

.TitleSearch-Title {
    font-size: 1.2em
}

.TitleSearch-Logo a {
    display: flex
}

.TitleSearch-Logo svg {
    color: var(--titlesearch-logo-color);
    margin-left: 8px
}

.TitleSearch-Hits:last-of-type {
    margin-bottom: 24px
}

.TitleSearch-Hits mark {
    background: none;
    color: var(--titlesearch-highlight-color)
}

.TitleSearch-HitsFooter {
    color: var(--titlesearch-muted-color);
    display: flex;
    font-size: .85em;
    justify-content: center;
    margin-bottom: var(--titlesearch-spacing);
    padding: var(--titlesearch-spacing)
}

.TitleSearch-HitsFooter a {
    border-bottom: 1px solid;
    color: inherit
}

.TitleSearch-Hit {
    border-radius: 4px;
    display: flex;
    padding-bottom: 4px;
    position: relative
}

@media screen and (prefers-reduced-motion:reduce) {
    .TitleSearch-Hit--deleting {
        transition: none
    }
}

.TitleSearch-Hit--deleting {
    opacity: 0;
    transition: all .25s linear
}

@media screen and (prefers-reduced-motion:reduce) {
    .TitleSearch-Hit--favoriting {
        transition: none
    }
}

.TitleSearch-Hit--favoriting {
    transform: scale(0);
    transform-origin: top center;
    transition: all .25s linear;
    transition-delay: .25s
}

.TitleSearch-Hit a {
    background: var(--titlesearch-hit-background);
    border-radius: 4px;
    box-shadow: var(--titlesearch-hit-shadow);
    display: block;
    padding-left: var(--titlesearch-spacing);
    width: 100%
}

.TitleSearch-Hit-source {
    background: var(--titlesearch-modal-background);
    color: var(--titlesearch-highlight-color);
    font-size: .85em;
    font-weight: 600;
    line-height: 32px;
    margin: 0 -4px;
    padding: 8px 4px 0;
    position: sticky;
    top: 0;
    z-index: 10
}

.TitleSearch-Hit-Tree {
    color: var(--titlesearch-muted-color);
    height: var(--titlesearch-hit-height);
    opacity: .5;
    stroke-width: var(--titlesearch-icon-stroke-width);
    width: 24px
}

.TitleSearch-Hit[aria-selected=true] a {
    background-color: var(--titlesearch-highlight-color)
}

.TitleSearch-Hit[aria-selected=true] mark {
    text-decoration: underline
}

.TitleSearch-Hit-Container {
    align-items: center;
    color: var(--titlesearch-hit-color);
    display: flex;
    flex-direction: row;
    height: var(--titlesearch-hit-height);
    padding: 0 var(--titlesearch-spacing) 0 0
}

.TitleSearch-Hit-icon {
    height: 20px;
    width: 20px
}

.TitleSearch-Hit-action,.TitleSearch-Hit-icon {
    color: var(--titlesearch-muted-color);
    stroke-width: var(--titlesearch-icon-stroke-width)
}

.TitleSearch-Hit-action {
    align-items: center;
    display: flex;
    height: 22px;
    width: 22px
}

.TitleSearch-Hit-action svg {
    display: block;
    height: 18px;
    width: 18px
}

.TitleSearch-Hit-action+.TitleSearch-Hit-action {
    margin-left: 6px
}

.TitleSearch-Hit-action-button {
    appearance: none;
    background: none;
    border: 0;
    border-radius: 50%;
    color: inherit;
    cursor: pointer;
    padding: 2px
}

svg.TitleSearch-Hit-Select-Icon {
    display: none
}

.TitleSearch-Hit[aria-selected=true] .TitleSearch-Hit-Select-Icon {
    display: block
}

.TitleSearch-Hit-action-button:focus,.TitleSearch-Hit-action-button:hover {
    background: rgba(0,0,0,.2);
    transition: background-color .1s ease-in
}

@media screen and (prefers-reduced-motion:reduce) {
    .TitleSearch-Hit-action-button:focus,.TitleSearch-Hit-action-button:hover {
        transition: none
    }
}

.TitleSearch-Hit-action-button:focus path,.TitleSearch-Hit-action-button:hover path {
    fill: #fff
}

.TitleSearch-Hit-content-wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    font-weight: 500;
    justify-content: center;
    line-height: 1.2em;
    margin: 0 8px;
    overflow-x: hidden;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 80%
}

.TitleSearch-Hit-title {
    font-size: .9em
}

.TitleSearch-Hit-path {
    color: var(--titlesearch-muted-color);
    font-size: .75em
}

.TitleSearch-Hit[aria-selected=true] .TitleSearch-Hit-action,.TitleSearch-Hit[aria-selected=true] .TitleSearch-Hit-icon,.TitleSearch-Hit[aria-selected=true] .TitleSearch-Hit-path,.TitleSearch-Hit[aria-selected=true] .TitleSearch-Hit-text,.TitleSearch-Hit[aria-selected=true] .TitleSearch-Hit-title,.TitleSearch-Hit[aria-selected=true] .TitleSearch-Hit-Tree,.TitleSearch-Hit[aria-selected=true] mark {
    color: var(--titlesearch-hit-active-color)!important
}

@media screen and (prefers-reduced-motion:reduce) {
    .TitleSearch-Hit-action-button:focus,.TitleSearch-Hit-action-button:hover {
        background: rgba(0,0,0,.2);
        transition: none
    }
}

.TitleSearch-ErrorScreen,.TitleSearch-NoResults,.TitleSearch-StartScreen {
    font-size: .9em;
    margin: 0 auto;
    padding: 36px 0;
    text-align: center;
    width: 80%
}

.TitleSearch-Screen-Icon {
    color: var(--titlesearch-muted-color);
    padding-bottom: 12px
}

.TitleSearch-NoResults-Prefill-List {
    display: inline-block;
    padding-bottom: 24px;
    text-align: left
}

.TitleSearch-NoResults-Prefill-List ul {
    display: inline-block;
    padding: 8px 0 0
}

.TitleSearch-NoResults-Prefill-List li {
    list-style-position: inside;
    list-style-type: "» "
}

.TitleSearch-Prefill {
    appearance: none;
    background: none;
    border: 0;
    border-radius: 1em;
    color: var(--titlesearch-highlight-color);
    cursor: pointer;
    display: inline-block;
    font-size: 1em;
    font-weight: 700;
    padding: 0
}

.TitleSearch-Prefill:focus,.TitleSearch-Prefill:hover {
    outline: none;
    text-decoration: underline
}

.TitleSearch-Footer {
    align-items: center;
    background: var(--titlesearch-footer-background);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--titlesearch-footer-shadow);
    display: flex;
    flex-direction: row-reverse;
    flex-shrink: 0;
    height: var(--titlesearch-footer-height);
    justify-content: space-between;
    padding: 0 var(--titlesearch-spacing);
    position: relative;
    user-select: none;
    width: 100%;
    z-index: 300
}

.TitleSearch-Commands {
    color: var(--titlesearch-muted-color);
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0
}

.TitleSearch-Commands li {
    align-items: center;
    display: flex
}

.TitleSearch-Commands li:not(:last-of-type) {
    margin-right: .8em
}

.TitleSearch-Commands-Key {
    align-items: center;
    background: var(--titlesearch-key-gradient);
    border-radius: 2px;
    box-shadow: var(--titlesearch-key-shadow);
    display: flex;
    height: 18px;
    justify-content: center;
    margin-right: .4em;
    padding: 0 0 1px;
    color: var(--titlesearch-muted-color);
    border: 0;
    width: 20px
}

@media (max-width: 768px) {
    :root {
        --titlesearch-spacing:10px;
        --titlesearch-footer-height: 40px
    }

    .TitleSearch-Dropdown {
        height: 100%
    }

    .TitleSearch-Container {
        height: 100vh;
        height: -webkit-fill-available;
        height: calc(var(--titlesearch-vh, 1vh)*100);
        position: absolute
    }

    .TitleSearch-Footer {
        border-radius: 0;
        bottom: 0;
        position: absolute
    }

    .TitleSearch-Hit-content-wrapper {
        display: flex;
        position: relative;
        width: 80%
    }

    .TitleSearch-Modal {
        border-radius: 0;
        box-shadow: none;
        height: 100vh;
        height: -webkit-fill-available;
        height: calc(var(--titlesearch-vh, 1vh)*100);
        margin: 0;
        max-width: 100%;
        width: 100%
    }

    .TitleSearch-Dropdown {
        max-height: calc(var(--titlesearch-vh, 1vh)*100 - var(--titlesearch-searchbox-height) - var(--titlesearch-spacing) - var(--titlesearch-footer-height))
    }

    .TitleSearch-Cancel {
        appearance: none;
        background: none;
        border: 0;
        color: var(--titlesearch-highlight-color);
        cursor: pointer;
        display: inline-block;
        flex: none;
        font: inherit;
        font-size: 1em;
        font-weight: 500;
        margin-left: var(--titlesearch-spacing);
        outline: none;
        overflow: hidden;
        padding: 0;
        user-select: none;
        white-space: nowrap
    }

    .TitleSearch-Commands,.TitleSearch-Hit-Tree {
        display: none
    }
}

@keyframes fade-in {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}
