*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto;background:#fff;color:#111}
.container{max-width:720px;margin:0 auto;padding:16px}
.tabs{position:sticky;top:0;background:#fff;padding:8px 0;margin-bottom:8px;border-bottom:1px solid #eee;z-index:10}
.tab{margin-right:8px;padding:10px 14px;border:1px solid #ddd;border-radius:8px;background:#f7f7f7;color:#111}
.tab.active{background:#1976d2;color:#fff;border-color:#1976d2}
h1{font-size:20px;margin:8px 0 16px}
.section{margin-top:8px}
.hidden{display:none}
.search{display:flex;gap:8px;margin-bottom:16px}
input{flex:1;padding:10px;border:1px solid #ccc;border-radius:6px;background:#fff;color:#111}
button{padding:10px 14px;border:0;border-radius:6px;background:#1976d2;color:#fff}
.results{display:flex;flex-direction:column;gap:12px}
.card{border:1px solid #eee;border-radius:10px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,0.04)}
.name{font-weight:700;font-size:16px;margin-bottom:6px}
.prices{display:flex;gap:16px;margin-bottom:6px}
.price-sale{color:#d32f2f;font-weight:600}
.price-purchase{color:#455a64}
.barcode{font-family:ui-monospace, SFMono-Regular, Menlo, monospace;color:#222}
mark{background:#ffec99}
.row{display:flex;justify-content:space-between;padding:4px 0}
.row span:first-child{color:#555}
.empty{color:#999}
.loading{color:#1976d2}
.status{margin-top:8px;color:#555}
.import{margin-top:12px;display:flex;gap:8px;align-items:center}
@media (max-width:600px){
  .container{padding:12px}
  .tab{padding:8px 12px}
  .prices{flex-direction:column}
  .import{flex-direction:column;align-items:stretch}
  .search{display:grid;grid-template-columns:4fr 1fr;gap:8px}
  input, button{font-size:16px}
}
