:root {
    --page: #000000;
    --ink: #101010;
    --muted: #6f6a61;
    --paper: #f8f8f8;
    --display: "Figtree", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page);
    color: var(--ink);
    font-family: var(--display);
    padding: 0 16px 32px;
}

.app-shell {
    width: min(640px, 100%);
    margin: 0 auto;
}

.brand-panel {
    background: #000000;
    color: #ffffff;
    padding: 42px 0 48px;
    text-align: center;
}

.style-button,
.style-options button {
    font-family: var(--display);
    font-weight: 400;
}

.brand-logo {
    display: block;
    width: min(280px, 100%);
    height: auto;
    margin: 0 auto;
}

.composer {
    background: var(--paper);
    padding: 0;
}

textarea {
    display: block;
    width: 100%;
    min-height: 172px;
    resize: vertical;
    border: 0;
    border-radius: 0;
    outline: 0;
    padding: 24px 24px 22px;
    color: var(--ink);
    background: var(--paper);
    font: 1.05rem/1.55 var(--display);
}

textarea::placeholder {
    color: #9a958d;
}

.source-select {
    display: none;
}

.style-picker {
    display: block;
    position: relative;
    background: #000000;
}

.style-picker::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 29px;
    width: 9px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.style-button {
    display: block;
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    padding: 0 56px 0 24px;
    font-size: 1.12rem;
    line-height: 58px;
    text-align: left;
    font-weight: 700;
}

.style-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.style-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    max-height: 260px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    background: #000000;
    list-style: none;
    font-weight: 700;
}

.style-picker.is-open .style-options {
    display: block;
}

.style-options button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-top: 1px solid #1f1f1f;
    background: #000000;
    color: #ffffff;
    cursor: pointer;
    padding: 0 24px;
    font-size: 1rem;
    text-align: left;
    font-weight: 700;
}

.style-options button:hover,
.style-options button:focus {
    background: #1b1b1b;
    outline: 0;
}

.status {
    min-height: 34px;
    padding: 9px 24px 0;
    color: var(--muted);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    animation: queneau-blink 1s step-end infinite;
}

.status:empty {
    display: none;
}

.history {
    display: flex;
    flex-direction: column;
}

.translation {
    padding: 24px;
    border-top: 1px solid #ece8df;
}

.translation-text {
    margin: 0;
    white-space: pre-wrap;
    font-family: var(--display);
    font-size: 1rem;
    line-height: 1.55;
}

.translation-text strong {
    font-weight: 700;
}

/* Animation für blinkenden Status-Text */
@keyframes queneau-blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .brand-panel {
        padding: 34px 0 40px;
    }

    textarea,
    .translation {
        padding-left: 20px;
        padding-right: 20px;
    }

    .style-button {
        padding-left: 20px;
    }
}
