@font-face {
    font-family: "Locker Gothic";
    src: url("/fonts/URWGothic-Book.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Locker Gothic";
    src: url("/fonts/URWGothic-Demi.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Locker Mono";
    src: url("/fonts/SourceCodePro-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Locker Mono";
    src: url("/fonts/SourceCodePro-Semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --uz-bg: #070908;
    --uz-bg-soft: #0e1210;
    --uz-surface: rgba(10, 14, 12, 0.88);
    --uz-surface-strong: rgba(12, 16, 14, 0.96);
    --uz-card: rgba(16, 22, 18, 0.94);
    --uz-card-alt: rgba(240, 255, 106, 0.04);
    --uz-border: rgba(240, 255, 106, 0.18);
    --uz-text: #eef6e8;
    --uz-text-muted: #9aafa0;
    --uz-primary: #f0ff6a;
    --uz-primary-strong: #f7ff9c;
    --uz-primary-ink: #0a1208;
    --uz-accent: #d8ff7a;
    --uz-accent-strong: #eaffb0;
    --uz-success: #b8ef6a;
    --uz-warning: #ffc857;
    --uz-danger: #ff6b6b;
    --uz-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --uz-radius-lg: 8px;
    --uz-radius-md: 6px;
    --uz-radius-sm: 4px;
    --uz-container: 1120px;
    --uz-font: "Locker Gothic", "Nimbus Sans", "Segoe UI", sans-serif;
    --uz-mono: "Locker Mono", "Source Code Pro", ui-monospace, monospace;
    --uz-grid-line: rgba(240, 255, 106, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #0a100c;
    background-image:
        radial-gradient(ellipse 80% 50% at 15% -10%, rgba(240, 255, 106, 0.12), rgba(240, 255, 106, 0) 55%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(216, 255, 122, 0.08), rgba(216, 255, 122, 0) 50%),
        linear-gradient(180deg, #0a100c 0%, #0e1410 45%, #0a100c 100%);
    color: var(--uz-text);
    font-family: var(--uz-font);
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(var(--uz-grid-line) 1px, rgba(240, 255, 106, 0) 1px),
        linear-gradient(90deg, var(--uz-grid-line) 1px, rgba(240, 255, 106, 0) 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 70%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 70%);
}

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

a:focus {
    outline: none;
    box-shadow: none;
    text-shadow: none;
}

a:focus-visible {
    outline: 1px solid var(--uz-border);
    outline-offset: 2px;
    box-shadow: none;
    text-shadow: none;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input[type="submit"] {
    cursor: pointer;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--uz-border);
    border-radius: var(--uz-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--uz-text);
    padding: 0.9rem 1rem;
}

select {
    /* Keep native dropdown menus readable on dark UI (avoid light text on light options). */
    color-scheme: dark;
    background-color: #121814;
    color: var(--uz-text);
}

select option,
select optgroup {
    background-color: #121814;
    color: #eef6e8;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(240, 255, 106, 0.28);
    outline-offset: 0;
    border-color: rgba(240, 255, 106, 0.55);
    box-shadow: 0 0 0 0.15rem rgba(240, 255, 106, 0.12);
}

textarea {
    min-height: 7rem;
    resize: vertical;
}

label {
    display: grid;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--uz-text-muted);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
pre {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.03em;
    line-height: 1.1;
}

code,
pre,
.uz-mono,
.mono {
    font-family: var(--uz-mono);
}

pre {
    overflow: auto;
}

.uz-hidden {
    display: none !important;
}

.uz-muted,
.muted {
    color: var(--uz-text-muted);
}

.uz-stack,
.stack,
.uploadzone-stack {
    display: grid;
    gap: 1rem;
}

.uz-grid {
    display: grid;
    gap: 1rem;
}

.uz-grid--cards,
.grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.uz-cluster,
.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
