:root{--bg: #f6f6f7;--surface: #ffffff;--surface-2: #f9f9fb;--border: #e1e3e5;--border-hover: #c9cccf;--text: #1a1a1a;--text-secondary: #616066;--text-tertiary: #8c8f94;--primary: #5c6ac4;--primary-hover: #4a58a3;--green: #15803d;--green-bg: #f0fdf4;--red: #dc2626;--red-bg: #fef2f2;--radius: 8px;--radius-sm: 6px}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}.app{max-width:1200px;margin:0 auto;padding:20px}.app-header{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--border);margin-bottom:24px}.app-logo{font-size:22px;font-weight:700;letter-spacing:-.5px}.app-logo span{color:var(--primary)}.app-meta{display:flex;align-items:center;gap:12px}.plan-badge{padding:4px 12px;border-radius:100px;font-size:12px;font-weight:600;background:var(--surface);border:1px solid var(--border)}.plan-badge.pro{background:var(--primary);color:#fff;border-color:var(--primary)}.usage-text{font-size:12px;color:var(--text-secondary)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;margin-bottom:16px}.card h2{font-size:16px;font-weight:600;margin-bottom:16px}.input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:14px;background:var(--surface);transition:border-color .15s}.input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}.input-group{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.input-label{font-size:12px;font-weight:600;color:var(--text-secondary)}.btn{padding:10px 16px;border-radius:var(--radius-sm);border:1px solid transparent;font-size:14px;font-weight:600;cursor:pointer;transition:all .15s;display:inline-flex;align-items:center;gap:6px}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-primary:disabled{background:var(--border);cursor:not-allowed}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border)}.btn-secondary:hover{border-color:var(--border-hover)}.btn-full{width:100%;justify-content:center}.layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:768px){.layout{grid-template-columns:1fr}}.spinner{width:20px;height:20px;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{text-align:center;padding:48px 20px;color:var(--text-tertiary)}.empty-state svg{margin-bottom:12px;opacity:.4}.stats{display:flex;gap:8px;margin-bottom:16px}.stat{flex:1;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;text-align:center}.stat span{display:block;font-size:11px;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.3px;margin-bottom:2px}.stat strong{font-size:18px;font-weight:700}.stat.green strong{color:var(--green)}.stat.red strong{color:var(--red)}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.product-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;cursor:pointer;transition:all .15s;position:relative}.product-card:hover{border-color:var(--border-hover);transform:translateY(-1px);box-shadow:0 2px 8px #0000000d}.product-card.selected{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}.product-card.is-dup{opacity:.5}.product-img{width:100%;aspect-ratio:1;object-fit:cover;background:var(--surface-2)}.product-info{padding:8px 10px}.product-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-price{font-size:11px;color:var(--text-secondary);margin-top:2px}.check{position:absolute;top:8px;left:8px;width:22px;height:22px;border-radius:4px;background:#ffffffe6;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;transition:all .15s}.check.checked{background:var(--primary);border-color:var(--primary);color:#fff}.dup-badge{position:absolute;top:8px;right:8px;padding:2px 8px;border-radius:100px;font-size:9px;font-weight:700}.dup-badge.exists{background:var(--red-bg);color:var(--red);border:1px solid rgba(220,38,38,.2)}.dup-badge.fresh{background:var(--green-bg);color:var(--green);border:1px solid rgba(21,128,61,.2)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:var(--surface);border-radius:var(--radius);width:90%;max-width:540px;max-height:85vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-header h3{font-size:16px;font-weight:600}.modal-body{padding:20px}.modal-footer{padding:12px 20px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}.tag-section{margin-bottom:14px}.tag-label{font-size:12px;font-weight:600;color:var(--text-secondary);margin-bottom:6px;display:block}.pill-group{display:flex;gap:6px;flex-wrap:wrap}.pill{padding:6px 14px;border-radius:100px;border:1px solid var(--border);background:var(--surface);font-size:12px;font-weight:500;cursor:pointer;transition:all .15s}.pill:hover{border-color:var(--border-hover)}.pill.active{background:var(--primary);color:#fff;border-color:var(--primary)}.console{background:#1a1a1a;color:#e0e0e0;border-radius:var(--radius-sm);padding:12px;font-family:monospace;font-size:12px;max-height:180px;overflow-y:auto}.console-line{padding:2px 0}.console-line.error{color:#ff6b6b}.console-line.success{color:#22c55e}
