* { 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: 480px; margin: 0 auto; padding: 16px; }
.header { background: #1976d2; color: #fff; padding: 16px; text-align: center; font-size: 18px; position: sticky; top: 0; z-index: 10; }
.header .logout { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #fff; background: none; border: 1px solid rgba(255,255,255,0.5); padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.nav { display: flex; background: #fff; border-bottom: 1px solid #e0e0e0; }
.nav a { flex: 1; text-align: center; padding: 12px; text-decoration: none; color: #666; font-size: 14px; }
.nav a.active { color: #1976d2; border-bottom: 2px solid #1976d2; }
.login-box { max-width: 360px; margin: 80px auto; background: #fff; padding: 32px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.login-box h2 { text-align: center; margin-bottom: 24px; color: #1976d2; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; font-size: 14px; color: #666; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; }
.btn { width: 100%; padding: 12px; background: #1976d2; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }
.btn:disabled { background: #ccc; }
.btn-confirm { background: #4caf50; }
.btn-confirm:hover { background: #388e3c; }
.card { background: #fff; border-radius: 8px; margin-bottom: 12px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.card .plate { font-size: 20px; font-weight: bold; color: #1976d2; }
.card .weight { font-size: 24px; font-weight: bold; margin: 8px 0; }
.card .meta { font-size: 13px; color: #999; }
.card .actions { margin-top: 12px; text-align: right; }
.card .actions button { padding: 8px 24px; font-size: 14px; }
.snap-list { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.snap-list img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; }
.empty { text-align: center; padding: 60px 16px; color: #999; font-size: 16px; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; padding: 24px; border-radius: 8px; max-width: 320px; width: 90%; text-align: center; }
.modal .modal-actions { margin-top: 16px; display: flex; gap: 12px; justify-content: center; }
.modal .modal-actions button { padding: 8px 24px; border-radius: 4px; border: none; cursor: pointer; font-size: 14px; }
.modal .btn-cancel { background: #e0e0e0; }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 20px; border-radius: 4px; z-index: 200; font-size: 14px; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.history-item .info { flex: 1; }
.history-item .tag { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.tag-manual { background: #e3f2fd; color: #1976d2; }
.tag-auto { background: #f3e5f5; color: #7b1fa2; }
@media (min-width: 481px) { .container { padding: 24px; } }
