* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    background: #eef3ee;
    color: #1f2a22;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
}

main {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 12px;
    border-top: 6px solid #d71920;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
    padding: 32px 28px;
}

main.wide { max-width: 980px; }

h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #1e5a32;
}

.lead { margin: 0 0 24px; line-height: 1.5; color: #4a574e; }

label { display: block; font-weight: 600; margin-bottom: 6px; }

input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 1.15rem;
    letter-spacing: .08em;
    border: 1px solid #c8d2ca;
    border-radius: 8px;
    margin-bottom: 16px;
}

input[type="text"]:focus { outline: 2px solid #1e5a32; border-color: transparent; }

.btn {
    display: inline-block;
    padding: 12px 20px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: #1e5a32;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

form > .btn { width: 100%; }
.btn:hover { background: #164426; }
.btn.secondary { background: #e4ece6; color: #1e5a32; }
.btn.secondary:hover { background: #d4e0d7; }
.btn.link { background: none; color: #4a574e; text-decoration: underline; padding-left: 4px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.actions form { margin: 0; }

.preview {
    width: 100%;
    aspect-ratio: 842 / 595;
    border: 1px solid #dde4de;
    border-radius: 8px;
}

.error {
    background: #fdecec;
    color: #9b1c1c;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 0 16px;
}

[hidden] { display: none !important; }
.btn:disabled { opacity: .6; cursor: wait; }
