:root {
    --red: #ed1c24;
    --light-red: #ff4646;
    --green: #00a651;
    --light-green: #03c679;
    --blue: #22b8ff;
    --cyan: #00ebef;
    --yellow: #fff200;
    --orange: #ff9f00;
    --magenta: #ec008c;
    --black: #000000;
    --white: #ffffff;
    --gray-1: #e6e7e8;
    --gray-2: #d1d3d4;
    --gray-3: #bcbec0;
    --gray-4: #a7a9ac;
    --gray-5: #939598;
    --gray-6: #808285;
    --gray-7: #6d6e71;
    --gray-8: #58595b;
    --gray-9: #414042;
    --gray-10: #231f20;

    --stats-1: var(--black);
    --stats-2: var(--gray-10);
    --stats-3: var(--gray-9);
    --stats-4: var(--gray-8);

    --inline-padding: 2px 7px;
    --small-gap: 5px;
    --layout-gap: 10px;

    --base-font-size: 16px;
    --jessc-base-font-size: var(--base-font-size);

    --default-font-family: "Inter", sans-serit;
    --jessc-font: var(--default-font-family);

    --radius: 4px;

    --jessc-text-color: var(--black);
    --jessc-error-color: var(--red);
    --jessc-interactive-background: var(--gray-2);
    --jessc-interactive-background-hover: var(--gray-3);
    --jessc-interactive-background-active: var(--gray-4);
    --jessc-interactive-color: var(--black);
    --jessc-interactive-color-active: var(--black);
    --jessc-interactive-border: var(--gray-3);
    --jessc-interactive-border-focused: var(--blue);
    --jessc-interactive-border-active: var(--blue);
    --jessc-border-radius-small: var(--radius);
    --jessc-border-radius-medium: var(--radius);
    --jessc-border-radius-large: var(--radius);
}

@media (prefers-color-scheme: dark) {
    :root {
        --red: #ed1c24;
        --light-red: #ff4646;
        --green: #00a651;
        --blue: #2e3192;
        --cyan: #00aeef;
        --yellow: #b6af0b;
        --orange: #ff9f00;
        --magenta: #ec008c;
        --black: #ffffff;
        --white: #0e0d0e;
        --gray-1: #231f20;
        --gray-2: #414042;
        --gray-3: #58595b;
        --gray-4: #6d6e71;
        --gray-5: #808285;
        --gray-6: #939598;
        --gray-7: #a7a9ac;
        --gray-8: #bcbec0;
        --gray-9: #d1d3d4;
        --gray-10: #e6e7e8;
    }
}

* {
    box-sizing: border-box;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    font-family: 'Material Symbols Outlined';
    font-size: 1.1em !important;
    line-height: 1.2;
}

.monospace {
    font-family: monospace !important;
}

a {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
}

.underline {
    text-decoration: underline;
}

.link-container {
    cursor: pointer;
    transition: all 0.1s;
}

.link-container:hover {
    transform: translateY(-2px);
    background: var(--blue);
}

a.button {
    padding: var(--inline-padding);
    border-radius: var(--radius);
    background: var(--gray-1);
    max-width: max-content;
    height: max-content;
}

.fit-content {
    max-width: max-content;
}

a.button:hover {
    background: var(--gray-2);
    color: var(--black);
}

.flex, .flex-v, button {
    display: flex;
    gap: var(--layout-gap);
    flex-wrap: wrap;
}

.flex-v {
    flex-direction: column;
}

.full-height {
    min-height: 100%;
}

.full-width {
    min-width: 100%;
}

.card {
    padding: var(--layout-gap) calc(var(--layout-gap) * 2);
    background: var(--white);
    border-radius: var(--radius);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100dvw;
}

body {
    background: var(--gray-1);
    color: var(--black);
    font-family: var(--default-font-family);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

#content {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.hidden {
    display: none;
}

.toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--small-gap);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.toggle .slider {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.toggle-container {
    width: 2.5rem;
    height: 1.5rem;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    background: var(--gray-3);
    border: 1px solid var(--gray-4);
    border-radius: 999px;
    transition: background .15s ease-in-out, border-color .15s ease-in-out;
}

.toggle:hover .toggle-container {
    background: var(--gray-4);
}

.toggle .slider:focus-visible + .toggle-container {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.toggle .slider:checked + .toggle-container {
    background: var(--blue);
    border-color: var(--blue);
}

.toggle-slider {
    display: block;
    width: 1rem;
    height: 1rem;
    background: var(--white);
    border-radius: 50%;
    transition: transform .15s ease-in-out;
}

.toggle .slider:checked + .toggle-container .toggle-slider {
    transform: translateX(1rem);
}

.toggle-text {
    font-size: .9rem;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3, h4, h5, h6 {
    font-size: 1rem;
}

b {
    font-weight: bold;
}

#notifications {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    top: 15px;
    width: max-content;
    z-index: 99998;
    max-height: 100dvh;
}

#modals:not(:empty) {
    position: fixed;
    z-index: 999;
    width: 100dvw;
    height: 100dvh;
    top: 0;
    left: 0;
}

#modals:before {
    content: "";
    position: absolute;
    background: black;
    opacity: .95;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

#modals:empty:before {
    display: none;
}

.modal {
    position: absolute;
    border: 1px solid var(--gray-3);
    box-shadow: 0 0 20dvw 0 black;
    border-radius: calc(var(--radius) * 2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    max-height: calc(100% - 100px);
    max-width: 80dvw;
    width: max-content;
}

.notification {
    font-weight: bold;
}

.error {
    color: var(--red);
}

.notification.error {
    color: var(--red);
}

.notification.success {
    color: var(--green);
}

.notification.warning {
    color: var(--orange);
}

.container {
    padding: calc(var(--layout-gap) * 2);
    box-sizing: border-box;
    background: var(--white);
    border-radius: var(--radius);
}

nav.container {
    padding: var(--layout-gap) !important;
}

.border {
    border: 1px solid var(--gray-2);
}

.layer-1 {
    background: var(--gray-1);
}

.layer-2 {
    background: var(--gray-2);
}

.layer-3 {
    background: var(--gray-3);
}

.center-items {
    align-items: center;
}

.split-flex {
    justify-content: space-between;
}

.page-frame {
    height: 100%;
    max-height: 100dvh;
    overflow: hidden;
    flex-wrap: nowrap;
}

.page-content {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

button.positive, .button.positive {
    background: var(--green);
    --jessc-text-color: var(--white);
    border-color: var(--light-green);
}

button.positive:hover, .button.positive:hover {
    --jessc-text-color: var(--black);
}

button.negative, .button.negative {
    border-color: var(--light-red);
}

button.negative:hover, .button.negative:hover {
    --jessc-text-color: var(--black);
    background: var(--red);
    border-color: var(--light-red);
}

button.active, .button.active {
    background: var(--blue);
}

.header-logo {
    --size: 2rem;
    width: var(--size);
    height: var(--size);
}

.loading {
    border-radius: 999px;
    width: 1em;
    height: 1em;
    animation: pulsating-shadow 1s ease-in-out infinite;
    background: var(--gray-3);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
}

@keyframes pulsating-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 0 1em rgba(0, 0, 0, 0);
    }
}

hr {
    background: var(--gray-5);
    border: none;
    height: 1px;
    margin: var(--layout-gap) 3px;
}

.table-wrapper.scroll-table {
    max-height: 75dvh;
    overflow: auto;
}

.text-small {
    font-size: .8rem;
}

.logs-table table {
    table-layout: fixed;
}

.logs-page {
    gap: var(--layout-gap);
}

.log-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--layout-gap);
    padding: var(--layout-gap) !important;
}

.log-filter-field {
    flex: 1 1 180px;
    min-width: 180px;
    align-self: flex-end;
}

.log-filter-toggle-field {
    flex: 0 0 auto;
    align-self: flex-end;
}

.log-filter-field > * {
    width: 100%;
}

.log-filter-label {
    width: 100%;
}

.log-filter-select {
    width: 100%;
}

.log-filter-toggle {
    min-height: 2.5rem;
}

.log-filter-actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    margin-left: auto;
}

thead tr th {
    position: sticky;
    top: 0;
    z-index: 1;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background: var(--gray-2);
    color: var(--black);
}

th, td {
    text-align: left;
    position: relative;
    box-sizing: border-box;
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    padding: var(--small-gap) calc(var(--small-gap) * 2);
}

tr:hover td {
    border-top: 1px solid var(--black);
    border-bottom: 1px solid var(--black);
}

tr:hover td:first-child {
    border-left: 1px solid var(--black);
}

tr:hover td:last-child {
    border-right: 1px solid var(--black);
}

th:first-child {
    border-top-left-radius: var(--radius);
}

th:last-child {
    border-top-right-radius: var(--radius);
}

tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius);
}

tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius);
}

td {
    background: var(--gray-1);
}

.log-row {
    --log-level-color: var(--gray-5);
}

.logs-table th:nth-child(1),
.logs-table .log-time {
    width: 12rem;
}

.logs-table th:nth-child(2),
.logs-table .log-level-cell {
    width: 8rem;
}

.log-row td:first-child {
    box-shadow: inset 4px 0 0 var(--log-level-color);
}

.log-time-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.log-level-cell {
    white-space: nowrap;
}

.log-level-pill {
    display: inline-block;
    background: var(--log-level-color);
    border-radius: 999px;
    padding: var(--inline-padding);
    font-size: .8rem;
    font-weight: bold;
    min-width: 6rem;
    text-align: center;
}

.log-message {
    word-break: break-word;
}

.log-debug {
    --log-level-color: var(--gray-5);
}

.log-success {
    --log-level-color: var(--green);
}

.log-info {
    --log-level-color: var(--blue);
}

.log-warning {
    --log-level-color: var(--orange);
}

.log-error {
    --log-level-color: var(--red);
}

.log-critical {
    --log-level-color: var(--red);
}

.log-unknown {
    --log-level-color: var(--gray-7);
}

.privateText {
    cursor: pointer;
}

button.jessc {
    align-items: center;
    display: flex;
    gap: var(--layout-gap);
}

.statistic {
    width: min(100%, 600px);
    border: 1px solid var(--gray-2);
    padding: var(--layout-gap) calc(var(--layout-gap) * 2);
    border-radius: var(--radius);
    background: var(--white);
}

.question-cursor {
    cursor: help;
}

.status-tr.requested {
    --status-color: var(--blue);
}

.status-tr.processing {
    --status-color: var(--cyan);
}

.status-tr.paid {
    --status-color: var(--green);
}

.status-tr.failed {
    --status-color: var(--red);
}

.status-tr .status, .pill {
    background: var(--status-color);
    border-radius: 999px;
    padding: var(--inline-padding);
    font-size: .8rem;
    max-width: max-content;
}

.green {
    --status-color: var(--green);
}

.blue {
    --status-color: var(--blue);
}

.yellow {
    --status-color: var(--yellow);
}

.orange {
    --status-color: var(--orange);
}

.red {
    --status-color: var(--red);
}

.clickable-icon {
    cursor: pointer;
    border-radius: 999px;
    padding: var(--small-gap);
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit !important;
}

.clickable-icon:hover {
    background: rgba(100, 100, 100, .5);
}

.service-link {
    border-radius: 999px;
    padding: 2px 2px 2px 20px;
    background: var(--service-link-color);
    --service-link-color: var(--gray-1);
    max-width: max-content;
    align-self: end;
}

.align-end {
    align-self: end;
}

.service-link.spotify {
    --service-link-color: #1db954;
    color: black;
}

.service-link.tidal {
    --service-link-color: white;
    color: black;
}

.service-link.youtube {
    --service-link-color: #ff0000;
}

.service-link.soundcloud {
    --service-link-color: #ff8800;
}

.service-link.applemusic {
    --service-link-color: #000000;
}

.service-link.bandcamp {
    --service-link-color: #00a1e0;
}

.service-link.lyda {
    --service-link-color: #70c926;
}

.flex-grow {
    flex-grow: 1;
}

.artist-logo {
    background: black;
    border-radius: 999px;
    padding: var(--layout-gap);
    box-sizing: border-box;
}

.nowrap {
    flex-wrap: nowrap;
}

.album-card {
    width: 200px;
    cursor: pointer;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--gray-3);
}

.album-card a {
    word-break: break-word;
}

.album-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.album-card:hover {
    border: 1px solid var(--cyan);
    background: var(--gray-3);
}

.auth-box {
    max-width: 600px;
    width: 100%;
    padding: calc(var(--layout-gap) * 2);
    background: var(--white);
    border-radius: calc(var(--radius) * 2);
    margin: auto;
}
