* {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

body {
    background: #f6f8fb;
    color: #111;
    margin: 0;
    padding: 24px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    margin-bottom: 12px;
}

h1 {
    margin: 0;
    font-size: 1.6rem;
}

.subtitle {
    color: #555;
    margin: 4px 0 8px;
}

.portfolio a {
    color: #0066cc;
    text-decoration: none;
}

.form .card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d6d9e6;
    border-radius: 6px;
}

.row-cs {
    display: flex;
    gap: 12px;
}

.row-cs label {
    flex: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    margin: 8px 0;
}

.actions button {
    margin-right: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 0;
    background: #0b6efd;
    color: #fff;
    cursor: pointer;
}

.actions button[type="reset"] {
    background: #e0e7ff;
    color: #111;
}

.hint {
    color: #6b7280;
    font-size: 0.9rem;
}

.preview {
    position: fixed;
    right: 24px;
    top: 24px;
    width: 360px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(2, 6, 23, 0.12);
    max-height: 80vh;
    overflow: auto;
}

footer {
    margin: 16px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

@media(max-width:760px) {
    .row-cs {
        flex-direction: column;
    }
}