* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; }
.container { max-width: 800px; margin: 0 auto; padding: 20px; }
header { text-align: center; padding: 20px 0; }
header h1 { font-size: 28px; color: #1a73e8; margin-bottom: 8px; }
.subtitle { color: #666; font-size: 14px; }
.tabs { display: flex; background: #fff; border-radius: 10px; overflow: hidden; margin: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.tab-btn { flex: 1; padding: 15px; border: none; background: #fff; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.tab-btn.active { background: #1a73e8; color: #fff; }
.tab-content { display: none; background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.tab-content.active { display: block; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #555; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.generator-type { display: flex; gap: 10px; margin-bottom: 20px; }
.type-btn { flex: 1; padding: 12px; border: 2px solid #1a73e8; background: #fff; border-radius: 8px; cursor: pointer; font-weight: 500; }
.type-btn.active { background: #1a73e8; color: #fff; }
.btn-row { display: flex; gap: 10px; margin: 20px 0; }
.btn-primary, .btn-secondary { flex: 1; padding: 14px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; font-weight: 500; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-secondary { background: #e0e0e0; color: #333; }
.preview-area { background: #fafafa; border: 2px dashed #ddd; border-radius: 10px; min-height: 200px; display: flex; align-items: center; justify-content: center; margin: 15px 0; }
.preview-hint { color: #999; font-size: 14px; }
.download-area { display: flex; gap: 10px; }
.scanner-container { position: relative; width: 100%; max-width: 400px; margin: 0 auto; background: #000; border-radius: 10px; overflow: hidden; }
.scanner-container video { width: 100%; display: block; }
.scanner-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; }
.scanner-frame { width: 200px; height: 200px; border: 3px solid #1a73e8; border-radius: 10px; }
.scan-result { margin-top: 20px; padding: 15px; background: #f5f5f5; border-radius: 8px; text-align: center; }
.scan-hint { color: #666; }
.history-filters { display: flex; gap: 10px; margin-bottom: 15px; }
.history-filters select, .history-filters input { padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.history-list { max-height: 400px; overflow-y: auto; }
.history-item { display: flex; align-items: center; gap: 15px; padding: 15px; border-bottom: 1px solid #eee; }
.history-item img { width: 80px; height: 60px; object-fit: contain; background: #fff; border: 1px solid #ddd; border-radius: 4px; }
.history-item .info { flex: 1; }
.history-item .format { font-weight: 600; color: #1a73e8; }
.history-item .content { font-size: 13px; color: #666; margin-top: 4px; }
.batch-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; margin-top: 20px; }
footer { text-align: center; padding: 20px; color: #999; font-size: 12px; }
.reproduce-data { display: none; }
