.sqlite-widget {
    float: right;
    clear: right;
    position: sticky;
    margin-right: -252px;
    width: 205px;
    top: 10em;
    z-index: 9001;
}

.sqlite-window {
    z-index: 9001;
    display: none;
    position: fixed;
    top: calc(50% - 300px);
    left: calc(50% - 300px);
    background: #fff;
    border-radius: 10px;
    margin: 0;
    border: none;
    padding: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5),
    5px 5px 25px rgba(0, 0, 0, 0.3);
    width: 600px;
}

.darkmode .sqlite-window {
    background: #555;
    color: #f2f2f2;
}

.sqlite-window[open] {
    display: block;
}

.sqlite-window.moving {
    cursor: grabbing;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5),
    5px 5px 25px rgba(0, 0, 0, 0.3);
}

.sqlite-window-header {
    background: #f2f2f2;
    border-radius: 10px 10px 0 0;
    color: #333;
    padding: .75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.sqlite-window-header:hover {
    background: #eee;
    cursor: grab;
}

.sqlite-window.moving .sqlite-window-header {
    background: #44546A;
    color: #f2f2f2;
    cursor: grabbing;
}

.darkmode .sqlite-window-header {
    background: #6d6d6d;
    color: #f2f2f2;
}

.darkmode .sqlite-window-header:hover {
    background: #8a8a8a;
}

.darkmode .sqlite-window.moving .sqlite-window-header {
    background: #333;
}

.sqlite-window-body {
    padding: 1rem;
}