:root {
    color-scheme: dark;
    font-family: "Inter", system-ui, sans-serif;
    --page-background: #08090a;
    --panel-background: #0d0f10;
    --field-background: #0a0b0c;
    --border-color: #2c2c2c;
    --text-color: #eeeef0;
    --muted-color: #8b8d91;
}

body {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 1.5rem;
    display: grid;
    place-items: center;
    background: var(--page-background);
    color: var(--text-color);
}

.panel {
    box-sizing: border-box;
    width: min(100%, 440px);
    padding: clamp(1.5rem, 5vw, 2rem);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--panel-background);
    box-shadow: 0 16px 48px rgb(0 0 0 / 24%);
}

h1 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.035em;
}

p { line-height: 1.5; }
p, small { color: var(--muted-color); }

a {
    color: var(--text-color);
    text-decoration-color: #6c6e72;
    text-underline-offset: 3px;
}

a:hover { color: #fff; text-decoration-color: currentColor; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible { outline: 2px solid #d9dcdf; outline-offset: 3px; }

form { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
label { margin-bottom: -0.4rem; font-size: 0.875rem; font-weight: 500; }

input,
select {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 0.7rem;
    border: 1px solid #383a3d;
    border-radius: 6px;
    background: var(--field-background);
    color: var(--text-color);
    font: inherit;
}

input:hover,
select:hover { border-color: #51555a; }

button {
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid #eeeef0;
    border-radius: 6px;
    background: #eeeef0;
    color: var(--page-background);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

button:hover:not(:disabled) { border-color: #fff; background: #fff; }
button:disabled { opacity: 0.6; cursor: wait; }
button.secondary { margin-top: 1rem; border-color: #383a3d; background: #202225; color: var(--text-color); }
button.secondary:hover:not(:disabled) { border-color: #51555a; background: #2b2d30; }
.status { min-height: 1.5em; }
.status.error { color: #ffb5a8; }
.result { overflow-wrap: anywhere; }
.projects { width: min(100%, 640px); }
.canvas-list { padding-left: 1.5rem; line-height: 1.8; }
[hidden] { display: none !important; }
