@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg:      #ffffff;
    --ink:     #000000;
    --accent:  #2563eb;
    --muted:   #6b7280;
    --border:  rgba(0,0,0,0.05);
    --surface: #fafafa;
    --success: #16a34a;
    --error:   #dc2626;
}

[data-theme="dark"] {
    --bg:      #050505;
    --ink:     #ffffff;
    --accent:  #d9ff00;
    --muted:   #9ca3af;
    --border:  rgba(255,255,255,0.06);
    --surface: #0f0f0f;
    --success: #4ade80;
    --error:   #f87171;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 40px 20px;
    transition: background 0.3s, color 0.3s; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }

header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 24px; width: 100%;
}

.back-link {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
}

.back-link:hover { color: var(--ink); }

.logo {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.1;
}

.tagline {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-top: 12px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.theme-toggle:hover { opacity: 0.6; }

.layout {
    max-width: 1200px;
    margin: 0 auto; width: 100%; width: 100%;
    display: grid;
    gap: 24px;
    flex: 1;}

@media (min-width: 900px) {
    .layout { grid-template-columns: 1fr 1fr;     flex: 1;}
    .layout-output { position: sticky; top: 40px; align-self: start; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px;
}

.hidden { display: none !important; }

.label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.03em;
}

.input {
    width: 100%;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
}

.input:focus { outline: none; border-color: var(--accent); }

.input--select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    cursor: pointer;
}

.row { display: flex; gap: 10px; align-items: center; }
.row--mt { margin-top: 10px; }

.color-field { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.color-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--muted);
}

.info-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn:hover { opacity: 0.8; }
.btn:disabled { opacity: 0.3; cursor: default; }
.btn--full { width: 100%; padding: 14px; }
.btn--small { padding: 8px 16px; font-size: 0.75rem; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }

.upload-zone {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.upload-zone:hover { border-color: var(--accent); }

.upload-placeholder { text-align: center; color: var(--muted); }
.upload-text { font-size: 0.8rem; margin-top: 10px; }

.upload-preview {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.result-placeholder {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 16px;
}

.result-placeholder .meta { font-size: 1.1rem; }
.result-placeholder .info-row .meta { font-size: 0.9rem; }
.result-placeholder .info-row { justify-content: center; }

input[type="range"] {
    width: 100%;
    accent-color: var(--ink);
    height: 6px;
    cursor: pointer;
}


.footer {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
        margin: 96px auto 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
        max-width: 1200px;
}

.footer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

@media (min-width: 640px) {
    .footer {
        flex-direction: row;
        justify-content: space-between;
            max-width: 1200px;
}
    .footer-inner {
        flex-direction: row;
        gap: 4px;
    }
}

@media (min-width: 768px) { body { padding: 60px 40px; } }
@media (min-width: 1024px) { body { padding: 60px 80px; } }













