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

body {
    font-family: 'Cascadia Code', 'Cascadia Mono', -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
    background: #fffbf4;
    color: #1d2126;
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    color: #1d2126;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1rem;
    color: #666;
}

main {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    background: transparent;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #1d2126;
}

small {
    color: #666;
    font-size: 0.85rem;
}

.btn-primary {
    background: #1d2126;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: font-weight 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 10px;
}

.btn-primary:hover {
    font-weight: 700;
}

.btn-primary:active {
    opacity: 0.8;
}

.status {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.status.hidden {
    display: none;
}

.status.loading {
    background: #f5f3ee;
    color: #666;
}

.status.error {
    background: #fff0f0;
    color: #c00;
}

.status.success {
    background: #f0f8f0;
    color: #1d2126;
}

.preview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.preview.hidden {
    display: none;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.preview-header h2 {
    color: #333;
}

.btn-close {
    background: transparent;
    color: #999;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 0.5;
}

#previewFrame {
    flex: 1;
    border: none;
    width: 100%;
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 24px;
    }
}
