:root {
    --bg-0: #050505;
    --bg-1: #0d0d0d;
    --bg-2: #171717;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --panel-border: rgba(255, 255, 255, 0.14);
    --panel-soft: rgba(190, 190, 190, 0.12);
    --text: #f2f2f2;
    --text-soft: #c9c9c9;
    --muted: #8e8e8e;
    --primary: #b8b8b8;
    --primary-2: #dedede;
    --accent: #9f9f9f;
    --gold: #d8d8d8;
    --gold-soft: rgba(216, 216, 216, 0.22);
    --success: #b7d3b7;
    --danger: #cfcfcf;

    --color-background: radial-gradient(circle at 50% 45%, #030303 0%, #080808 34%, #151515 68%, #3a3a3a 100%);
    --color-on-background: var(--text);
    --color-background-hover: rgba(255, 255, 255, 0.1);
    --color-on-background-hover: var(--text);
    --color-primary: var(--primary);
    --color-primary-disabled: #444444;
    --color-on-primary: white;
    --color-error: #cfcfcf;
    --color-on-error: white;
}

main,
header {
    --color-background: radial-gradient(circle at 50% 45%, #030303 0%, #080808 34%, #151515 68%, #3a3a3a 100%);
    --color-on-background: var(--text);
    --color-background-hover: rgba(255, 255, 255, 0.1);
    --color-on-background-hover: var(--text);
    --color-primary: var(--primary);
    --color-primary-disabled: #444444;
    --color-on-primary: white;
    --color-error: #cfcfcf;
    --color-on-error: white;
}

main.dark,
header.dark {
    color-scheme: dark;
}

html,
body {
    height: 100%;
}

html {
    background:
        radial-gradient(circle at 0% 10%, rgba(255, 255, 255, 0.30), transparent 22%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 26%),
        radial-gradient(circle at 50% 45%, #030303 0%, #080808 34%, #151515 68%, #3a3a3a 100%);
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    color: var(--text);
    background: transparent;
}

header,
main {
    background: transparent;
    color: var(--color-on-background);
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 2.2fr) minmax(18rem, 1fr);
    column-gap: 2rem;
}

header {
    padding-inline: clamp(1rem, 4vw, 4rem);
    color: var(--text);
}

header.top-strip {
    min-height: 2.75rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

header.main-header {
    min-height: 5.5rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 10;
}

header .logo {
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo__mark {
    height: 3rem;
    width: 3rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(210,210,210,0.22), rgba(115,115,115,0.22));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 0 22px rgba(220, 220, 220, 0.12);
    color: #f5f5f5;
    font-size: 1.1rem;
}

.logo__sub {
    color: var(--text-soft);
    margin-top: 0.2rem;
}

header .nav {
    flex: 1;
}

main {
    height: 0;
    flex: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    column-gap: 2rem;
    padding-inline: clamp(0.5rem, 2vw, 2rem);
    padding-bottom: 1rem;
}

main > div {
    overflow-y: auto;
}

.spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: span 3;
}

input[type="checkbox"] {
    height: 1.1rem;
    width: 1.1rem;
    cursor: pointer;
    margin: 0;
    accent-color: var(--accent);
}

a {
    color: inherit;
}

img {
    display: block;
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(170,170,170,0.7), rgba(70,70,70,0.7));
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(210,210,210,0.95), rgba(100,100,100,0.95));
}
