* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #fff; color: #1F2937; line-height: 1.5; }
.app-container { min-height: 100vh; display: flex; flex-direction: column; max-width: 800px; margin: 0 auto; padding: 0 16px; }
.header { padding: 32px 0; text-align: center; }
.brand-title { font-size: 24px; font-weight: 600; color: #1F2937; margin: 0; }
.brand-subtitle { font-size: 14px; font-weight: 400; color: #6B7280; margin: 6px 0 0; }
.main-content { flex: 1; padding-bottom: 32px; }
.form-container { background: #F3F4F6; padding: 32px; border-radius: 8px; margin-bottom: 32px; }
.form-field { margin-bottom: 24px; }
.form-field:last-of-type { margin-bottom: 0; }
.form-label { display: block; font-size: 16px; font-weight: 500; color: #1F2937; margin-bottom: 8px; }
.required { color: #F97316; }
.form-input, .form-select { width: 100%; padding: 12px 0; font-size: 14px; color: #1F2937; background: transparent; border: none; border-bottom: 1px solid #E5E7EB; outline: none; font-family: inherit; }
.form-input:focus, .form-select:focus { border-bottom-color: #2563EB; }
.form-input::placeholder { color: #9CA3AF; }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 24px; }
.form-hint { display: block; font-size: 12px; color: #6B7280; margin-top: 4px; }
.radio-group { display: flex; gap: 24px; margin-top: 8px; }
.radio-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.radio-label input[type="radio"] { width: 18px; height: 18px; cursor: pointer; accent-color: #2563EB; }
.btn-generate { width: 100%; padding: 14px 24px; margin-top: 24px; font-size: 16px; font-weight: 500; color: #fff; background: #F97316; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; }
.btn-generate:hover:not(:disabled) { background: #EA580C; }
.btn-generate:disabled { background: #D1D5DB; cursor: not-allowed; color: #9CA3AF; }
.loading { display: flex; align-items: center; justify-content: center; gap: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-message { white-space: pre-line; background: rgba(220,38,38,0.95); color: #fff; padding: 16px 24px; border-radius: 8px; margin: 24px auto; max-width: 600px; font-size: 14px; position: relative; cursor: pointer; }
.error-message strong { display: block; margin-bottom: 4px; }
.error-close { position: absolute; top: 12px; right: 16px; font-size: 20px; cursor: pointer; opacity: 0.8; }
.result-container { background: #F3F4F6; padding: 32px; border-radius: 8px; margin-top: 32px; }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.result-title { font-size: 20px; font-weight: 600; color: #1F2937; margin: 0; }
.result-actions { display: flex; gap: 12px; width: 100%; }
.btn-action { flex: 1; padding: 12px 24px; font-size: 14px; font-weight: 500; color: #fff; background: #2563EB; border: none; border-radius: 8px; cursor: pointer; font-family: inherit; }
.btn-action:hover { background: #1D4ED8; }
.script-content { font-size: 14px; color: #1F2937; line-height: 1.5; }
.script-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.script-table thead { background: #F3F4F6; }
.script-table th, .script-table td { padding: 12px; text-align: left; font-size: 14px; border-bottom: 1px solid #E5E7EB; }
.script-table th { font-weight: 500; }
.script-text { white-space: pre-wrap; font-family: monospace; font-size: 14px; background: #fff; padding: 16px; border-radius: 4px; overflow-x: auto; }
.footer { padding: 16px; text-align: center; background: #374151; }
.footer-text { font-size: 12px; color: #E5E7EB; margin: 0; }
.footer-seo { font-size: 12px; color: #9CA3AF; text-align: center; margin: 8px 0 0; }
@media (max-width: 768px) { .form-container, .result-container { padding: 24px 16px; } .brand-title { font-size: 20px; } .result-header { flex-direction: column; align-items: flex-start; } }
.form-input:focus, .form-select:focus, .btn-generate:focus, .btn-action:focus { outline: 2px solid #2563EB; outline-offset: 2px; }
