.qrgen-th-wrapper {
    max-width: 780px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
}

.qrgen-th-intro {
    margin-bottom: 24px;
}

.qrgen-th-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.qrgen-th-meta-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.qrgen-th-tool {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: #f8f9fb;
    border: 1px solid #e3e5e9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.qrgen-th-controls {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qrgen-th-controls label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.qrgen-th-controls textarea,
.qrgen-th-controls select,
.qrgen-th-controls input[type="color"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d4da;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.qrgen-th-controls input[type="color"] {
    padding: 4px;
    height: 42px;
    cursor: pointer;
}

.qrgen-th-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.qrgen-th-field {
    flex: 1 1 140px;
}

.qrgen-th-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.qrgen-th-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.qrgen-th-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qrgen-th-btn-primary {
    background: #2563eb;
    color: #fff;
}

.qrgen-th-btn-secondary {
    background: #16a34a;
    color: #fff;
}

.qrgen-th-btn-outline {
    background: #fff;
    color: #333;
    border: 1px solid #d0d4da;
}

.qrgen-th-btn:hover:not(:disabled) {
    opacity: 0.85;
}

.qrgen-th-error {
    color: #dc2626;
    font-size: 13px;
    min-height: 18px;
    margin: 0;
}

.qrgen-th-output {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px dashed #d0d4da;
    border-radius: 8px;
    min-height: 260px;
    padding: 16px;
}

.qrgen-th-output img,
.qrgen-th-output canvas {
    max-width: 100%;
    height: auto;
}

.qrgen-th-placeholder {
    color: #9aa0a8;
    font-size: 14px;
    text-align: center;
}

.qrgen-th-howto,
.qrgen-th-faq {
    margin-top: 32px;
}

.qrgen-th-howto h2,
.qrgen-th-faq h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.qrgen-th-howto ol {
    padding-left: 20px;
    line-height: 1.8;
}

.qrgen-th-faq-item {
    margin-bottom: 16px;
}

.qrgen-th-faq-item h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.qrgen-th-faq-item p {
    margin: 0;
    color: #444;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .qrgen-th-title {
        font-size: 22px;
    }
    .qrgen-th-tool {
        padding: 16px;
    }
}
