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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f2f0eb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    color: #1c1917;
}

main {
    max-width: 440px;
    width: 100%;
}

.label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a89f95;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.sub {
    font-size: 0.9rem;
    color: #8a8078;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}

input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #ddd9d3;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #faf9f7;
    color: #1c1917;
    outline: none;
    transition: border-color 0.2s;
}

input::placeholder { color: #bbb5ae; }
input:focus { border-color: #a89f95; background: #fff; }

button {
    padding: 0.65rem 1.1rem;
    background: #1c1917;
    color: #f2f0eb;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

button:hover { opacity: 0.8; }
button:disabled { opacity: 0.35; cursor: default; }

#thinking {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.9;
    border-left: 2px solid #ddd9d3;
    padding-left: 0.9rem;
    margin-bottom: 1.4rem;
}

#thinking:empty { display: none; }

.step { display: block; color: #b0a99f; }
.step.active { color: #5a534d; }
.step.active::after {
    content: '|';
    animation: blink 0.6s steps(1) infinite;
    margin-left: 1px;
}

@keyframes blink {
    50% { opacity: 0; }
}

#result {
    display: none;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1.5px solid #e8e4de;
    border-radius: 6px;
}

#result .found-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a89f95;
    margin-bottom: 0.3rem;
}

#result strong {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.error {
    font-size: 0.85rem;
    color: #b0a99f;
    padding-left: 0.9rem;
    border-left: 2px solid #ddd9d3;
}

