@font-face {
    font-family: Geist;
    src: url('./fonts/Geist.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap
}

@font-face {
    font-family: 'Geist Mono';
    src: url('./fonts/GeistMono.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap
}

:root {
    color-scheme: dark;
    --bg: #08090c;
    --surface: #0e1014;
    --raised: #15171c;
    --hover: #1b1e24;
    --active: #23262e;
    --line: #252830;
    --line-subtle: #1b1e24;
    --fg: #ededed;
    --muted: #a1a1aa;
    --faint: #85858f;
    --accent: #ff780a;
    --success: #91c7a4;
    --danger: #f29ba2;
    --radius: 8px;
    --radius-lg: 12px;
    --font: Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, monospace;
    --ease: cubic-bezier(.23, 1, .32, 1)
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 14px/1.5 var(--font);
    -webkit-font-smoothing: antialiased
}

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

button,
input,
select,
textarea {
    font: inherit
}

h1,
h2,
h3,
p {
    margin: 0
}

h1 {
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -.8px;
    font-weight: 550
}

h2 {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 550;
    letter-spacing: -.2px
}

h3 {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 550
}

small,
.caption {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted)
}

.muted {
    color: var(--muted)
}

.mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums
}

.stack {
    display: grid;
    gap: 16px;
    align-content: start
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 550;
    letter-spacing: -.4px
}

.brand img {
    width: 30px;
    height: 30px;
    display: block
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--fg);
    font-size: 13px;
    font-weight: 450;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    transition: background-color 120ms ease, border-color 120ms ease
}

.btn-primary {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
    font-weight: 550
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted)
}

.btn-danger {
    color: var(--danger);
    background: #28191e;
    border-color: #513039
}

.btn-small {
    min-height: 30px;
    padding: 4px 9px;
    font-size: 12px
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed
}

.btn[aria-busy=true] {
    cursor: wait;
    color: transparent
}

.btn[aria-busy=true]::before {
    content: '';
    position: absolute;
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--fg);
    border-right-color: transparent;
    border-radius: 50%;
    animation: busy-spin .7s linear infinite
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--raised);
    color: var(--muted);
    font-size: 11px;
    font-weight: 450;
    white-space: nowrap
}

.badge-success {
    color: var(--success);
    background: #14211b
}

.badge-warning {
    color: #e9bf8c;
    background: #282015
}

.badge-danger {
    color: var(--danger);
    background: #28191e
}

.badge-dot::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor
}

.field {
    display: grid;
    gap: 7px;
    min-width: 0
}

.field label {
    font-size: 13px;
    font-weight: 450;
    color: #c8c8cf
}

.input {
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 8px 11px;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 120ms ease
}

.input::placeholder {
    color: var(--faint)
}

.input[aria-invalid=true] {
    border-color: #ad565f
}

.field-error,
.form-error {
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5
}

.field-help {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted)
}

.field-error:empty {
    display: none
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--fg)
}

.note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--line-subtle);
    border-radius: 7px;
    background: var(--surface);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6
}

.note-warning {
    border-color: #3a3022;
    color: #e9bf8c;
    background: #19150f
}

.note-error {
    border-color: #4a2930;
    color: var(--danger);
    background: #1c1216
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    min-width: 0;
    overflow: hidden
}

.panel-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

.panel-body {
    padding: 20px
}

.panel-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--line-subtle);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg)
}

.panel-header+.panel-body {
    padding-top: 4px
}

.empty {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 9px;
    padding: 48px 24px;
    max-width: 440px;
    margin: auto
}

.empty h2 {
    font-size: 15px
}

.empty p {
    font-size: 13px;
    color: var(--muted);
    max-width: 320px
}

.empty .actions {
    margin-top: 9px;
    justify-content: center
}

.empty-symbol {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 14px;
    margin-bottom: 5px
}

.separator {
    height: 1px;
    background: var(--line-subtle);
    border: 0;
    margin: 0
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

[hidden] {
    display: none !important
}

@keyframes busy-spin {
    to {
        transform: rotate(360deg)
    }
}

@media(hover:hover) and (pointer:fine) {
    .btn:not(:disabled):not([aria-busy=true]):hover {
        background: var(--hover);
        border-color: #3c404b
    }

    .btn-primary:not(:disabled):not([aria-busy=true]):hover {
        background: #fff;
        border-color: #fff
    }

    .btn-ghost:not(:disabled):hover {
        border-color: transparent;
        color: var(--fg)
    }

    .btn-danger:not(:disabled):hover {
        background: #3b1e26;
        border-color: #70404a
    }

    .input:hover {
        border-color: #3c404b
    }
}

@media(pointer:coarse) {

    .btn,
    .input {
        min-height: 44px
    }

    .input {
        font-size: 16px
    }

    .btn-small {
        min-height: 44px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: 0s !important
    }

    .btn[aria-busy=true]::before {
        animation: none
    }
}

.btn-primary[aria-busy=true]::before {
    border-color: var(--bg);
    border-right-color: transparent
}

h1:focus {
    outline: none
}
