:root{font-family:Segoe UI,system-ui,sans-serif;line-height:1.5;color:#1a1a2e;background:#f0f2f5}*{box-sizing:border-box}body{margin:0}#app{max-width:960px;margin:0 auto;padding:1.5rem}header h1{margin:0 0 .25rem;font-size:1.5rem}.sub{margin:0 0 1.25rem;color:#555;font-size:.9rem}.toolbar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}button,.file-btn{padding:.45rem .85rem;border:1px solid #c5c9d0;border-radius:6px;background:#fff;cursor:pointer;font-size:.9rem}button.primary{background:#2563eb;color:#fff;border-color:#2563eb}button:disabled{opacity:.5;cursor:not-allowed}.file-btn input{display:none}.cards{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}@media (max-width: 700px){.cards{grid-template-columns:1fr}}.card{background:#fff;border-radius:10px;padding:1rem 1.1rem;box-shadow:0 1px 3px #00000014}.card h2{margin:0 0 .75rem;font-size:1rem}.stat{font-size:2rem;font-weight:700;color:#2563eb}.hint{font-size:.85rem;color:#666}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{padding:.4rem .5rem;text-align:left;border-bottom:1px solid #eee}th{font-weight:600;color:#444}input[type=number],input[type=text]{width:100%;padding:.35rem .5rem;border:1px solid #ccc;border-radius:4px}select.type-select{width:100%;padding:.35rem .5rem;border:1px solid #ccc;border-radius:4px;font-size:.9rem;background:#fff}.type-tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.75rem}.type-tag{font-size:.85rem;padding:.2rem .55rem;border-radius:999px;background:#e8eef9;color:#1e3a5f}.type-add-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.type-add-row input{flex:1;min-width:10rem}.cloud-api-row{display:block;margin-top:.5rem}.cloud-login-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:.5rem}.cloud-login-row input{width:auto;min-width:8rem;flex:1}.reward-form{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:.5rem;align-items:end;margin-top:.75rem}@media (max-width: 600px){.reward-form{grid-template-columns:1fr}}.toast{margin:.75rem 0;padding:.6rem .85rem;border-radius:6px;background:#fef3c7;border:1px solid #fcd34d;font-size:.9rem}.toast.error{background:#fee2e2;border-color:#fca5a5}.toast.success{background:#dcfce7;border-color:#86efac}.history{font-size:.85rem;color:#555}.history details{margin-bottom:.35rem}.empty{color:#888;font-size:.9rem}
